Prefix output messages with appropriate emoji
This commit is contained in:
parent
8b8620864c
commit
a10cd805ae
@ -22,4 +22,4 @@ with open('/opt/netbox/initializers/regions.yml', 'r') as stream:
|
||||
region, created = Region.objects.get_or_create(**params)
|
||||
|
||||
if created:
|
||||
print("Created region", region.name)
|
||||
print("🌐 Created region", region.name)
|
||||
|
@ -37,4 +37,4 @@ with open('/opt/netbox/initializers/sites.yml', 'r') as stream:
|
||||
|
||||
site.custom_field_values.add(custom_field_value)
|
||||
|
||||
print("Created site", site.name)
|
||||
print("📍 Created site", site.name)
|
||||
|
@ -10,5 +10,5 @@ with open('/opt/netbox/initializers/manufacturers.yml', 'r') as stream:
|
||||
manufacturer, created = Manufacturer.objects.get_or_create(**params)
|
||||
|
||||
if created:
|
||||
print("Created Manufacturer", manufacturer.name)
|
||||
print("🏭 Created Manufacturer", manufacturer.name)
|
||||
|
||||
|
@ -47,5 +47,5 @@ with open('/opt/netbox/initializers/device_types.yml', 'r') as stream:
|
||||
|
||||
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)
|
||||
|
||||
|
@ -18,4 +18,4 @@ with open('/opt/netbox/initializers/rack_roles.yml', 'r') as stream:
|
||||
rack_role, created = RackRole.objects.get_or_create(**params)
|
||||
|
||||
if created:
|
||||
print("Created rack role", rack_role.name)
|
||||
print("🎨 Created rack role", rack_role.name)
|
||||
|
@ -57,4 +57,4 @@ with open('/opt/netbox/initializers/racks.yml', 'r') as stream:
|
||||
|
||||
rack.custom_field_values.add(custom_field_value)
|
||||
|
||||
print("Created rack", rack.site, rack.name)
|
||||
print("🔳 Created rack", rack.site, rack.name)
|
||||
|
@ -19,4 +19,4 @@ with open('/opt/netbox/initializers/device_roles.yml', 'r') as stream:
|
||||
device_role, created = DeviceRole.objects.get_or_create(**params)
|
||||
|
||||
if created:
|
||||
print("Created device role", device_role.name)
|
||||
print("🎨 Created device role", device_role.name)
|
||||
|
@ -61,4 +61,4 @@ with open('/opt/netbox/initializers/devices.yml', 'r') as stream:
|
||||
|
||||
device.custom_field_values.add(custom_field_value)
|
||||
|
||||
print("Created device", device.name)
|
||||
print("🖥️ Created device", device.name)
|
||||
|
Loading…
Reference in New Issue
Block a user