dell_storagecenter_driver/dell_storagecenter_blockdevice.py
def list_volumes(self):
        """List all the block devices available via the back end API.

        :returns: A ``list`` of ``BlockDeviceVolume``s.
        """
        volumes = []

        try:
            with self._client.open_connection() as api:
                vols = api.list_volumes()

                # Now convert our API objects to flocker ones
                for vol in vols:
                    attached_to = None
                    mappings = api.find_mapping_profiles(vol)
                    if mappings:
                        attached_to = mappings[0]['server']['instanceName']
                    volumes.append(
                        self._to_blockdevicevolume(vol, attached_to))
        except Exception:
            LOG.exception('Error encountered listing volumes.')
            raise
        LOG.info(volumes)
        return volumes
List all the block devices available via the back end API.

        :returns: A ``list`` of ``BlockDeviceVolume``s.
        
List all the block devices available via the back end API.
List all the block devices available via the back end API .
def list_volumes(self):
        volumes = []
        try:
            with self._client.open_connection() as api:
                vols = api.list_volumes()
                for vol in vols:
                    attached_to = None
                    mappings = api.find_mapping_profiles(vol)
                    if mappings:
                        attached_to = mappings[0]['server']['instanceName']
                    volumes.append(
                        self._to_blockdevicevolume(vol, attached_to))
        except Exception:
            LOG.exception('Error encountered listing volumes.')
            raise
        LOG.info(volumes)
        return volumes
def list_volumes ( self ) : volumes = [ ] try : with self . _client . open_connection ( ) as api : vols = api . list_volumes ( ) for vol in vols : attached_to = None mappings = api . find_mapping_profiles ( vol ) if mappings : attached_to = mappings [ 0 ] [ 'server' ] [ 'instanceName' ] volumes . append ( self . _to_blockdevicevolume ( vol , attached_to ) ) except Exception : LOG . exception ( 'Error encountered listing volumes.' ) raise LOG . info ( volumes ) return volumes
List all the block devices available via the back end API.
List all the block devices available via the back end API .
"""List all the block devices available via the back end API.

        :returns: A ``list`` of ``BlockDeviceVolume``s.
        """ # Now convert our API objects to flocker ones
A ``list`` of ``BlockDeviceVolume``s.
A ` ` list ` ` of ` ` BlockDeviceVolume ` ` s .
self