From a10cd805ae42c56cec6f69350fb5a2bc752e047f Mon Sep 17 00:00:00 2001 From: Aleksandar Radunovic Date: Tue, 30 Oct 2018 10:51:43 +0100 Subject: [PATCH] Prefix output messages with appropriate emoji --- startup_scripts/030_regions.py | 2 +- startup_scripts/040_sites.py | 2 +- startup_scripts/050_manufacturers.py | 2 +- startup_scripts/060_device_types.py | 2 +- startup_scripts/070_rack_roles.py | 2 +- startup_scripts/080_racks.py | 2 +- startup_scripts/090_device_roles.py | 2 +- startup_scripts/100_devices.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/startup_scripts/030_regions.py b/startup_scripts/030_regions.py index 888f031..eed0cac 100644 --- a/startup_scripts/030_regions.py +++ b/startup_scripts/030_regions.py @@ -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) diff --git a/startup_scripts/040_sites.py b/startup_scripts/040_sites.py index 3dd5a57..b974a82 100644 --- a/startup_scripts/040_sites.py +++ b/startup_scripts/040_sites.py @@ -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) diff --git a/startup_scripts/050_manufacturers.py b/startup_scripts/050_manufacturers.py index 13cad50..fdee2b4 100644 --- a/startup_scripts/050_manufacturers.py +++ b/startup_scripts/050_manufacturers.py @@ -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) diff --git a/startup_scripts/060_device_types.py b/startup_scripts/060_device_types.py index f4d5ae2..e663172 100644 --- a/startup_scripts/060_device_types.py +++ b/startup_scripts/060_device_types.py @@ -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) diff --git a/startup_scripts/070_rack_roles.py b/startup_scripts/070_rack_roles.py index ca82125..e4023e3 100644 --- a/startup_scripts/070_rack_roles.py +++ b/startup_scripts/070_rack_roles.py @@ -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) diff --git a/startup_scripts/080_racks.py b/startup_scripts/080_racks.py index 2f5ea75..c90e20a 100644 --- a/startup_scripts/080_racks.py +++ b/startup_scripts/080_racks.py @@ -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) diff --git a/startup_scripts/090_device_roles.py b/startup_scripts/090_device_roles.py index d3f52d8..6a8a16b 100644 --- a/startup_scripts/090_device_roles.py +++ b/startup_scripts/090_device_roles.py @@ -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) diff --git a/startup_scripts/100_devices.py b/startup_scripts/100_devices.py index b4f0323..1818431 100644 --- a/startup_scripts/100_devices.py +++ b/startup_scripts/100_devices.py @@ -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)