Use black as formatter for python files
This commit is contained in:
parent
0d25aff744
commit
493fc60401
57 changed files with 915 additions and 900 deletions
|
@ -1,14 +1,15 @@
|
|||
from virtualization.models import ClusterGroup
|
||||
from startup_script_utils import load_yaml
|
||||
import sys
|
||||
|
||||
cluster_groups = load_yaml('/opt/netbox/initializers/cluster_groups.yml')
|
||||
from startup_script_utils import load_yaml
|
||||
from virtualization.models import ClusterGroup
|
||||
|
||||
cluster_groups = load_yaml("/opt/netbox/initializers/cluster_groups.yml")
|
||||
|
||||
if cluster_groups is None:
|
||||
sys.exit()
|
||||
sys.exit()
|
||||
|
||||
for params in cluster_groups:
|
||||
cluster_group, created = ClusterGroup.objects.get_or_create(**params)
|
||||
cluster_group, created = ClusterGroup.objects.get_or_create(**params)
|
||||
|
||||
if created:
|
||||
print("🗄️ Created Cluster Group", cluster_group.name)
|
||||
if created:
|
||||
print("🗄️ Created Cluster Group", cluster_group.name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue