nested dict doesn't play well with configparser

This commit is contained in:
ahmadbilalkhalid 2020-01-07 22:18:13 +05:00
commit f8f790e7fc
2 changed files with 4 additions and 7 deletions

View file

@ -59,7 +59,7 @@ class CreateVM(Resource):
macs = [generate_mac() for _ in range(len(data['network']))]
tap_ids = [
counters.increment_etcd_counter(
shared.etcd_client, settings['etcd']['counter']['tap']
shared.etcd_client, settings['etcd']['tap_counter']
)
for _ in range(len(data['network']))
]
@ -470,7 +470,7 @@ class CreateNetwork(Resource):
network_entry = {
'id': counters.increment_etcd_counter(
shared.etcd_client, settings['etcd']['counter']['vxlan']
shared.etcd_client, settings['etcd']['vxlan_counter']
),
'type': data['type'],
}