remove site from power_feeds

This commit is contained in:
ryanmerolle 2021-01-15 15:02:01 -05:00
parent 788aeacd9b
commit 2372c1eeff
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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 = {