Commit e282309f by James Cammarata

Make sure the inventory restriction is not None

parent 635fa075
...@@ -523,7 +523,9 @@ class Inventory(object): ...@@ -523,7 +523,9 @@ class Inventory(object):
to batch serial operations in main playbook code, don't use this for other to batch serial operations in main playbook code, don't use this for other
reasons. reasons.
""" """
if not isinstance(restriction, list): if restriction is None:
return
elif not isinstance(restriction, list):
restriction = [ restriction ] restriction = [ restriction ]
self._restriction = restriction self._restriction = restriction
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment