Prefix output messages with appropriate emoji

This commit is contained in:
Aleksandar Radunovic 2018-10-30 10:51:43 +01:00
parent 8b8620864c
commit a10cd805ae
8 changed files with 8 additions and 8 deletions

View File

@ -22,4 +22,4 @@ with open('/opt/netbox/initializers/regions.yml', 'r') as stream:
region, created = Region.objects.get_or_create(**params) region, created = Region.objects.get_or_create(**params)
if created: if created:
print("Created region", region.name) print("🌐 Created region", region.name)

View File

@ -37,4 +37,4 @@ with open('/opt/netbox/initializers/sites.yml', 'r') as stream:
site.custom_field_values.add(custom_field_value) site.custom_field_values.add(custom_field_value)
print("Created site", site.name) print("📍 Created site", site.name)

View File

@ -10,5 +10,5 @@ with open('/opt/netbox/initializers/manufacturers.yml', 'r') as stream:
manufacturer, created = Manufacturer.objects.get_or_create(**params) manufacturer, created = Manufacturer.objects.get_or_create(**params)
if created: if created:
print("Created Manufacturer", manufacturer.name) print("🏭 Created Manufacturer", manufacturer.name)

View File

@ -47,5 +47,5 @@ with open('/opt/netbox/initializers/device_types.yml', 'r') as stream:
device_type.custom_field_values.add(custom_field_value) device_type.custom_field_values.add(custom_field_value)
print("Created device type", device_type.manufacturer, device_type.model) print("🔡 Created device type", device_type.manufacturer, device_type.model)

View File

@ -18,4 +18,4 @@ with open('/opt/netbox/initializers/rack_roles.yml', 'r') as stream:
rack_role, created = RackRole.objects.get_or_create(**params) rack_role, created = RackRole.objects.get_or_create(**params)
if created: if created:
print("Created rack role", rack_role.name) print("🎨 Created rack role", rack_role.name)

View File

@ -57,4 +57,4 @@ with open('/opt/netbox/initializers/racks.yml', 'r') as stream:
rack.custom_field_values.add(custom_field_value) rack.custom_field_values.add(custom_field_value)
print("Created rack", rack.site, rack.name) print("🔳 Created rack", rack.site, rack.name)

View File

@ -19,4 +19,4 @@ with open('/opt/netbox/initializers/device_roles.yml', 'r') as stream:
device_role, created = DeviceRole.objects.get_or_create(**params) device_role, created = DeviceRole.objects.get_or_create(**params)
if created: if created:
print("Created device role", device_role.name) print("🎨 Created device role", device_role.name)

View File

@ -61,4 +61,4 @@ with open('/opt/netbox/initializers/devices.yml', 'r') as stream:
device.custom_field_values.add(custom_field_value) device.custom_field_values.add(custom_field_value)
print("Created device", device.name) print("🖥️ Created device", device.name)