mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 03:01:06 -03:30
Merge pull request #7942 from ryanpetrello/iso-removal
fix a bug that prevents the explicit removal of instances from groups Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -32,4 +32,7 @@ class Command(BaseCommand):
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
i = i.first()
|
i = i.first()
|
||||||
ig.instances.remove(i)
|
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")
|
print("Instance removed from instance group")
|
||||||
|
|||||||
Reference in New Issue
Block a user