remove site from power_feeds
This commit is contained in:
parent
788aeacd9b
commit
2372c1eeff
@ -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
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user