diff options
author | Feng Pan <fpan@redhat.com> | 2016-12-02 22:00:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-02 22:00:51 +0000 |
commit | 6b0166ef6e4673afee9589d6b55e94236a31a721 (patch) | |
tree | c6b54cb72fb99a48d5078c4c699ac24b397c4642 /lib/python/apex/inventory.py | |
parent | d9f9c45d2c2a70877a0e9dd689ddb6173501ae0d (diff) | |
parent | ffeea8b7aff158a65b5f8c7baf445c6f2206790f (diff) |
Merge "Fixes using single network (previously called flat) for deploy"
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 |