diff options
author | Tim Rozet <trozet@redhat.com> | 2016-11-30 15:37:12 -0500 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2016-12-02 14:27:30 -0500 |
commit | ffeea8b7aff158a65b5f8c7baf445c6f2206790f (patch) | |
tree | 410b0d3ffc8b4c6a49864717fb1db4c7c14599dd /lib/python/apex/inventory.py | |
parent | 71b677dcf162eb6eb22f116ee1b08714efb24db3 (diff) |
Fixes using single network (previously called flat) for deploy
Also contains various network parsing fixes.
JIRA: APEX-361
Change-Id: I5e40ed67267d5ded85adc2982a8726ebbceaeae5
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'lib/python/apex/inventory.py')
-rw-r--r-- | lib/python/apex/inventory.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/apex/inventory.py b/lib/python/apex/inventory.py index 37143566..711eb18f 100644 --- a/lib/python/apex/inventory.py +++ b/lib/python/apex/inventory.py @@ -22,7 +22,7 @@ class Inventory(dict): """ def __init__(self, source, ha=True, virtual=False): init_dict = {} - if type(source) is str: + if isinstance(source, str): with open(source, 'r') as inventory_file: yaml_dict = yaml.safe_load(inventory_file) # collapse node identifiers from the structure |