aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdynamic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dynamic.py b/dynamic.py
index 4b5cde5..908e4d3 100755
--- a/dynamic.py
+++ b/dynamic.py
@@ -35,7 +35,7 @@ class AnsibleInput:
def __init__(self, filepath):
with open(filepath) as file:
- self.data = yaml.load(file, Loader=yaml.FullLoader)
+ self.data = yaml.load(file, Loader=yaml.FullLoader) or {}
self.name = os.path.splitext(os.path.basename(filepath))[0]
remember that computers suck.