mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -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:
commit
a3eff133fe
@ -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