mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 21:07:39 -02:30
Import latest ec2.py and fix an issue
Upgrading ec2.py to fix an issue where the module wasn't obeying "replace_dash_in_groups" property.
This commit is contained in:
@@ -857,7 +857,7 @@ class Command(NoArgsCommand):
|
||||
del_pks = del_host_pks[offset:(offset + self._batch_size)]
|
||||
for db_host in db_hosts.filter(pk__in=del_pks):
|
||||
group_host_count += 1
|
||||
if db_host not in db_group.hosts:
|
||||
if db_host not in db_group.hosts.all():
|
||||
continue
|
||||
db_group.hosts.remove(db_host)
|
||||
self.logger.info('Host "%s" removed from group "%s"',
|
||||
|
||||
Reference in New Issue
Block a user