dell_storagecenter_driver/dell_storagecenter_api.py
def delete_volume(self, name):
        """Deletes the volume from the SC backend array.

        If the volume cannot be found we claim success.

        :param name: Name of the volume to search for.  This is the cinder
                     volume ID.
        :returns: Boolean indicating success or failure.
        """
        if not isinstance(name, unicode):
            name = u"%s" % name
        vol = self.find_volume(name)
        if vol is not None:
            r = self.client.delete('StorageCenter/ScVolume/%s'
                                   % self._get_id(vol))
            if not self._check_result(r):
                raise Exception(
                    'Error deleting volume '
                    '%(ssn)s: %(volume)s: %(code)d %(reason)s' %
                    {'ssn': self.ssn,
                     'volume': name,
                     'code': r.status_code,
                     'reason': r.reason})
            # json return should be true or false
            return self._get_json(r)
        LOG.warning('delete_volume: unable to find volume %s',
                    name)
        # If we can't find the volume then it is effectively gone.
        return True
Deletes the volume from the SC backend array.

        If the volume cannot be found we claim success.

        :param name: Name of the volume to search for.  This is the cinder
                     volume ID.
        :returns: Boolean indicating success or failure.
        
Deletes the volume from the SC backend array.
If the volume cannot be found we claim success.
Deletes the volume from the SC backend array . If the volume cannot be found we claim success .
def delete_volume(self, name):
        if not isinstance(name, unicode):
            name = u"%s" % name
        vol = self.find_volume(name)
        if vol is not None:
            r = self.client.delete('StorageCenter/ScVolume/%s'
                                   % self._get_id(vol))
            if not self._check_result(r):
                raise Exception(
                    'Error deleting volume '
                    '%(ssn)s: %(volume)s: %(code)d %(reason)s' %
                    {'ssn': self.ssn,
                     'volume': name,
                     'code': r.status_code,
                     'reason': r.reason})
            return self._get_json(r)
        LOG.warning('delete_volume: unable to find volume %s',
                    name)
        return True
def delete_volume ( self , name ) : if not isinstance ( name , unicode ) : name = u"%s" % name vol = self . find_volume ( name ) if vol is not None : r = self . client . delete ( 'StorageCenter/ScVolume/%s' % self . _get_id ( vol ) ) if not self . _check_result ( r ) : raise Exception ( 'Error deleting volume ' '%(ssn)s: %(volume)s: %(code)d %(reason)s' % { 'ssn' : self . ssn , 'volume' : name , 'code' : r . status_code , 'reason' : r . reason } ) return self . _get_json ( r ) LOG . warning ( 'delete_volume: unable to find volume %s' , name ) return True
Deletes the volume from the SC backend array.
Deletes the volume from the SC backend array .
"""Deletes the volume from the SC backend array.

        If the volume cannot be found we claim success.

        :param name: Name of the volume to search for.  This is the cinder
                     volume ID.
        :returns: Boolean indicating success or failure.
        """ # json return should be true or false # If we can't find the volume then it is effectively gone.
Boolean indicating success or failure.
Boolean indicating success or failure .
self
name
Name of the volume to search for.  This is the cinder
volume ID.
Name of the volume to search for . This is the cinder volume ID .