diff options
author | Dan Radez <dradez@redhat.com> | 2016-08-09 11:44:12 -0400 |
---|---|---|
committer | Dan Radez <dradez@redhat.com> | 2016-08-09 14:31:38 -0400 |
commit | ce2b7dc6d86cfeae8a8addc9ef427e1c58bf8908 (patch) | |
tree | 5b6ae10db9ba69d202b8b720e7d8a7a49f18296d /lib/python/apex_python_utils.py | |
parent | 5c9e135ccc5867ebf26bbe594cbd9964582a237d (diff) |
Making NetworkSettings a dict
Change-Id: Ib7fc4e9ca543a4c678576ea2119fa606ece0095c
Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'lib/python/apex_python_utils.py')
-rwxr-xr-x | lib/python/apex_python_utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/python/apex_python_utils.py b/lib/python/apex_python_utils.py index c548437d..4820fe4d 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 |