correct missing required sites in power_feeds
This commit is contained in:
parent
00fa1793d0
commit
788aeacd9b
|
@ -1,6 +1,6 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from dcim.models import Rack, PowerPanel, PowerFeed
|
from dcim.models import Rack, PowerPanel, PowerFeed, Site
|
||||||
from startup_script_utils import *
|
from startup_script_utils import *
|
||||||
from tenancy.models import Tenant
|
from tenancy.models import Tenant
|
||||||
|
|
||||||
|
@ -10,7 +10,8 @@ if power_feeds is None:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
required_assocs = {
|
required_assocs = {
|
||||||
'power_panel': (PowerPanel, 'name')
|
'power_panel': (PowerPanel, 'name'),
|
||||||
|
'site': (Site, 'name')
|
||||||
}
|
}
|
||||||
|
|
||||||
optional_assocs = {
|
optional_assocs = {
|
||||||
|
|
Loading…
Reference in New Issue