From 9fce8b8efe893bf9fdaa7ad8448b63aef7a31b00 Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 16 May 2023 14:17:34 -0700 Subject: [PATCH] 6347 reindent migration --- netbox/dcim/apps.py | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/netbox/dcim/apps.py b/netbox/dcim/apps.py index 8439cc1af..8643f412c 100644 --- a/netbox/dcim/apps.py +++ b/netbox/dcim/apps.py @@ -17,30 +17,18 @@ class DCIMConfig(AppConfig): from utilities.counter import connect_counter # Register denormalized fields - denormalized.register( - CableTermination, - '_device', - { - '_rack': 'rack', - '_location': 'location', - '_site': 'site', - }, - ) - denormalized.register( - CableTermination, - '_rack', - { - '_location': 'location', - '_site': 'site', - }, - ) - denormalized.register( - CableTermination, - '_location', - { - '_site': 'site', - }, - ) + denormalized.register(CableTermination, '_device', { + '_rack': 'rack', + '_location': 'location', + '_site': 'site', + }) + denormalized.register(CableTermination, '_rack', { + '_location': 'location', + '_site': 'site', + }) + denormalized.register(CableTermination, '_location', { + '_site': 'site', + }) connect_counter('_console_port_count', ConsolePort.device) connect_counter('_console_server_port_count', ConsoleServerPort.device)