summaryrefslogtreecommitdiffstats
path: root/lib/python/apex_python_utils.py
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-08-10 21:14:18 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-10 21:14:18 +0000
commitbdf5e90f537ded151d2a324798259bda88251842 (patch)
treef7b5ebc821626e69e4969575a4a55b5b8d8d4160 /lib/python/apex_python_utils.py
parent76ad2898211ec9788cd3f0a386a7c34e97dff2fb (diff)
parentce2b7dc6d86cfeae8a8addc9ef427e1c58bf8908 (diff)
Merge "Making NetworkSettings a dict"
Diffstat (limited to 'lib/python/apex_python_utils.py')
-rwxr-xr-xlib/python/apex_python_utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/python/apex_python_utils.py b/lib/python/apex_python_utils.py
index 8ea40f2c..dcf483d1 100755
--- a/lib/python/apex_python_utils.py
+++ b/lib/python/apex_python_utils.py
@@ -97,14 +97,13 @@ def build_nic_template(args):
network_settings = NetworkSettings(args.net_settings_file,
args.network_isolation)
- settings = network_settings.settings_obj
env = Environment(loader=FileSystemLoader(template_dir))
template = env.get_template(template)
# gather vlan values into a dict
net_list = copy(args.enabled_networks).split(' ')
net_list.remove(ADMIN_NETWORK)
- vlans_vals = map(lambda x: settings[x]['vlan'], net_list)
+ vlans_vals = map(lambda x: network_settings[x]['vlan'], net_list)
vlans = dict(zip(net_list, vlans_vals))
nics = network_settings.nics