diff options
author | Jeff Bradberry <jeff.bradberry@gmail.com> | 2020-10-28 19:27:03 +0100 |
---|---|---|
committer | Ryan Petrello <rpetrell@redhat.com> | 2020-10-30 21:39:56 +0100 |
commit | cb570a2ba16babf2bdd1d28d20b86c2303c6de5c (patch) | |
tree | 3ae5180c3b396dfa587d7e0e25b2a819900a909d /awx_collection | |
parent | Rework the export of full dependent objects (diff) | |
download | awx-cb570a2ba16babf2bdd1d28d20b86c2303c6de5c.tar.xz awx-cb570a2ba16babf2bdd1d28d20b86c2303c6de5c.zip |
Fix the 'absent' state in tower_instance_group
Diffstat (limited to 'awx_collection')
-rw-r--r-- | awx_collection/plugins/modules/tower_instance_group.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/awx_collection/plugins/modules/tower_instance_group.py b/awx_collection/plugins/modules/tower_instance_group.py index 77c4ac4ece..076610f7c0 100644 --- a/awx_collection/plugins/modules/tower_instance_group.py +++ b/awx_collection/plugins/modules/tower_instance_group.py @@ -111,7 +111,7 @@ def main(): # Attempt to look up an existing item based on the provided data existing_item = module.get_one('instance_groups', name_or_id=name) - if state is 'absent': + if state == 'absent': # If the state was absent we can let the module delete it if needed, the module will handle exiting from this module.delete_if_needed(existing_item) |