summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Chapman <woppin@gmail.com>2016-11-16 02:39:05 +1100
committerMichael Chapman <michapma@redhat.com>2016-11-16 02:42:26 +1100
commit561cb895134b6d60eeb1b332c195fad6b0b55891 (patch)
tree4824905305a9e67b780608788bbe0fc240c082c1
parent5f2cc4e6b222d109836abd1172f481f303f46319 (diff)
Rename network settings variable
The network_settings_file variable is actually the inventory file, this patch renames it to match. Change-Id: Id4d0b792b8426b4e0b1c61270fe2e6da89559413 Signed-off-by: Michael Chapman <michapma@redhat.com>
-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()))