aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'os_net_config/objects.py')
-rw-r--r--os_net_config/objects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/os_net_config/objects.py b/os_net_config/objects.py
index ec915da..a469914 100644
--- a/os_net_config/objects.py
+++ b/os_net_config/objects.py
@@ -247,7 +247,8 @@ class _BaseOpts(object):
mtu = json.get('mtu', None)
dhclient_args = json.get('dhclient_args')
dns_servers = json.get('dns_servers')
- nm_controlled = json.get('nm_controlled')
+ nm_controlled = strutils.bool_from_string(str(json.get('nm_controlled',
+ False)))
primary = strutils.bool_from_string(str(json.get('primary', False)))
addresses = []
routes = []