From ff7fe2acdfb20b09f360a752b5fe4b93e46bfc6a Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Wed, 28 Oct 2020 14:27:03 -0400 Subject: [PATCH] Fix the 'absent' state in tower_instance_group --- awx_collection/plugins/modules/tower_instance_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)