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:
Matthew Jones
2016-06-07 13:59:58 -04:00
parent 8a884894c5
commit bdf5ee1fea
2 changed files with 161 additions and 50 deletions

View File

@@ -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"',