def run(self, storage_info={}, **kwargs):
    resource_storage = self.cloud.resources[utl.STORAGE_RESOURCE]
    for (vol_id, vol_info) in storage_info[utl.VOLUMES_TYPE].iteritems():
        if ('instance' in vol_info['meta']):
            if vol_info['meta']['instance']:
                resource_storage.detach_volume(vol_id)
    return {}
def run(self, storage_info={}, **kwargs):
    resource_storage = self.cloud.resources[utl.STORAGE_RESOURCE]
    for (vol_id, vol_info) in storage_info[utl.VOLUMES_TYPE].iteritems():
        if ('instance' in vol_info['meta']):
            if vol_info['meta']['instance']:
                resource_storage.detach_volume(vol_id)
    return {}