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

@ -90,10 +90,8 @@ class Settings(object):
'request_prefix': join_path(base_prefix, 'requests/'),
'user_prefix': join_path(base_prefix, 'users/'),
'vm_prefix': join_path(base_prefix, 'vms/'),
'counter': {
'vxlan': join_path(base_prefix, 'counters/vxlan'),
'tap': join_path(base_prefix, 'counters/tap')
}
'vxlan_counter': join_path(base_prefix, 'counters/vxlan'),
'tap_counter': join_path(base_prefix, 'counters/tap')
}
}
)
@ -129,7 +127,6 @@ class Settings(object):
self.read_values_from_etcd()
except KeyError:
pass
return self.config_parser[key]