mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
Fix the 'absent' state in tower_instance_group
This commit is contained in:
@@ -111,7 +111,7 @@ def main():
|
|||||||
# Attempt to look up an existing item based on the provided data
|
# Attempt to look up an existing item based on the provided data
|
||||||
existing_item = module.get_one('instance_groups', name_or_id=name)
|
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
|
# 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)
|
module.delete_if_needed(existing_item)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user