Make sure the inventory restriction is not None

pull/12047/head
James Cammarata 9 years ago
parent 635fa0757b
commit e282309f6d

@ -523,7 +523,9 @@ class Inventory(object):
to batch serial operations in main playbook code, don't use this for other
reasons.
"""
if not isinstance(restriction, list):
if restriction is None:
return
elif not isinstance(restriction, list):
restriction = [ restriction ]
self._restriction = restriction

Loading…
Cancel
Save