mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Make sure the inventory restriction is not None
This commit is contained in:
parent
635fa0757b
commit
e282309f6d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue