

@logging.log_deploy_wrapper(LOG.info, _('Destroy host(s)'))
def destroy_servers(self):
    for resource in self.resources.get_all():
        server = provider.Server.from_credentials(resource['info']['host'])
        lxc_host = LxcHost(server, resource['info']['config'])
        lxc_host.containers = self['info']['container_names']
        lxc_host.destroy_containers()
        lxc_host.destroy_ports(resource['info']['forwarded_ports'])
        lxc_host.delete_tunnels()
        self.resources.delete(resource['id'])
    host_provider = self.get_host_provider()
    host_provider.destroy_servers()

dataset/ETHPy150Open openstack/rally/rally/deployment/serverprovider/providers/lxc.py LxcProvider.destroy_servers/VarMisuse@74/103 `resource`->`self`