mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
fix a bug that prevents the explicit removal of instances from groups
This commit is contained in:
parent
383f8aa8f9
commit
b14515b287
@ -32,4 +32,7 @@ class Command(BaseCommand):
|
||||
sys.exit(1)
|
||||
i = i.first()
|
||||
ig.instances.remove(i)
|
||||
if i.hostname in ig.policy_instance_list:
|
||||
ig.policy_instance_list.remove(i.hostname)
|
||||
ig.save()
|
||||
print("Instance removed from instance group")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user