summaryrefslogtreecommitdiffstats
path: root/lib/python/apex
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-11-18 14:59:18 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-18 14:59:18 +0000
commitb09c163b900afb060fdf85e15e020b7e036befb6 (patch)
tree68c587906d0644c9edfdf706e0f94dde808d5ad2 /lib/python/apex
parent122e9d68ebd38e6e2ff82548fb77812a04c05e17 (diff)
parent561cb895134b6d60eeb1b332c195fad6b0b55891 (diff)
Merge "Rename network settings variable"
Diffstat (limited to 'lib/python/apex')
-rw-r--r--lib/python/apex/inventory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/apex/inventory.py b/lib/python/apex/inventory.py
index aa219680..37143566 100644
--- a/lib/python/apex/inventory.py
+++ b/lib/python/apex/inventory.py
@@ -23,8 +23,8 @@ class Inventory(dict):
def __init__(self, source, ha=True, virtual=False):
init_dict = {}
if type(source) is str:
- with open(source, 'r') as network_settings_file:
- yaml_dict = yaml.safe_load(network_settings_file)
+ with open(source, 'r') as inventory_file:
+ yaml_dict = yaml.safe_load(inventory_file)
# collapse node identifiers from the structure
init_dict['nodes'] = list(map(lambda n: n[1],
yaml_dict['nodes'].items()))