diff --git a/plugins/module_utils/parse.py b/plugins/module_utils/parse.py index 18f34654..1e592e0e 100644 --- a/plugins/module_utils/parse.py +++ b/plugins/module_utils/parse.py @@ -133,7 +133,7 @@ def process_hash(attrs, level=3, indent=2, prefix=' '): else: result += "%s%s %s= {\n%s%s}\n" % ( prefix, attribute_types(attr), op, process_hash(attrs=value, indent=indent+2), ' '*indent) - elif type(value) is list: + elif type(value) is list and value: if value[0] == "+": op = "+" value.pop(0)