From 2372c1eeff14e6a511acf7c9ce880bdc4f865720 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Fri, 15 Jan 2021 15:02:01 -0500 Subject: [PATCH] remove site from power_feeds --- initializers/power_feeds.yml | 2 -- startup_scripts/340_power_feeds.py | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/initializers/power_feeds.yml b/initializers/power_feeds.yml index 4b1338a..7ef5891 100644 --- a/initializers/power_feeds.yml +++ b/initializers/power_feeds.yml @@ -1,5 +1,4 @@ # - name: power feed 1 -# site: AMS 1 # power_panel: power panel AMS 1 # voltage: 208 # amperage: 50 @@ -7,7 +6,6 @@ # phase: Single phase # rack: rack-01 # - name: power feed 2 -# site: SING 1 # power_panel: power panel SING 1 # voltage: 208 # amperage: 50 diff --git a/startup_scripts/340_power_feeds.py b/startup_scripts/340_power_feeds.py index 8660da5..fc7ee38 100644 --- a/startup_scripts/340_power_feeds.py +++ b/startup_scripts/340_power_feeds.py @@ -1,6 +1,6 @@ import sys -from dcim.models import Rack, PowerPanel, PowerFeed, Site +from dcim.models import Rack, PowerPanel, PowerFeed from startup_script_utils import * from tenancy.models import Tenant @@ -10,8 +10,7 @@ if power_feeds is None: sys.exit() required_assocs = { - 'power_panel': (PowerPanel, 'name'), - 'site': (Site, 'name') + 'power_panel': (PowerPanel, 'name') } optional_assocs = {