summaryrefslogtreecommitdiffstats
path: root/lib/python/apex/inventory.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/apex/inventory.py')
-rw-r--r--lib/python/apex/inventory.py2
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