Revision 4cf2178f snf-tools/synnefo_tools/burnin/cyclades_common.py

b/snf-tools/synnefo_tools/burnin/cyclades_common.py
567 567

  
568 568
    def _delete_floating_ips(self, fips):
569 569
        """Delete floating ips"""
570
        for fip in fips:
570
        # Renew the list of floating IP objects
571
        # (It may have been changed, i.e. a port may have been deleted).
572
        fip_ids = [f['id'] for f in fips]
573
        new_fips = [f for f in self.clients.network.list_floatingips()
574
                    if f['id'] in fip_ids]
575

  
576
        for fip in new_fips:
571 577
            port_id = fip['port_id']
572 578
            if port_id:
573 579
                self.info("Destroying port with id %s", port_id)

Also available in: Unified diff