dell_storagecenter_driver/dell_storagecenter_api.py
def find_volume(self, name):
        """Search self.ssn for volume of name.

        This searches the folder self.vfname (specified in the cinder.conf)
        for the volume first.  If not found it searches the entire array for
        the volume.

        :param name: Name of the volume to search for.  This is the cinder
                     volume ID.
        :returns: Dell Volume object or None if not found.
        :raises VolumeBackendAPIException: If multiple copies are found.
        """
        LOG.debug('Searching %(sn)s for %(name)s',
                  {'sn': self.ssn,
                   'name': name})

        # Cannot find a volume without the name
        if name is None:
            return None

        # Look for our volume in our folder.
        vollist = self._get_volume_list(name,
                                        None,
                                        True)
        # If an empty list was returned they probably moved the volumes or
        # changed the folder name so try again without the folder.
        if not vollist:
            LOG.debug('Cannot find volume %(n)s in %(v)s. Searching SC.',
                      {'n': name,
                       'v': self.vfname})
            vollist = self._get_volume_list(name,
                                            None,
                                            False)

        # If multiple volumes of the same name are found we need to error.
        if len(vollist) > 1:
            # blow up
            raise Exception('Multiple copies of volume %s found.' % name)

        # We made it and should have a valid volume.
        return None if not vollist else vollist[0]
Search self.ssn for volume of name.

        This searches the folder self.vfname (specified in the cinder.conf)
        for the volume first.  If not found it searches the entire array for
        the volume.

        :param name: Name of the volume to search for.  This is the cinder
                     volume ID.
        :returns: Dell Volume object or None if not found.
        :raises VolumeBackendAPIException: If multiple copies are found.
        
Search self.ssn for volume of name.
This searches the folder self.vfname (specified in the cinder.conf)
for the volume first.  If not found it searches the entire array for
the volume.
Search self . ssn for volume of name . This searches the folder self . vfname ( specified in the cinder . conf ) for the volume first . If not found it searches the entire array for the volume .
def find_volume(self, name):
        LOG.debug('Searching %(sn)s for %(name)s',
                  {'sn': self.ssn,
                   'name': name})
        if name is None:
            return None
        vollist = self._get_volume_list(name,
                                        None,
                                        True)
        if not vollist:
            LOG.debug('Cannot find volume %(n)s in %(v)s. Searching SC.',
                      {'n': name,
                       'v': self.vfname})
            vollist = self._get_volume_list(name,
                                            None,
                                            False)
        if len(vollist) > 1:
            raise Exception('Multiple copies of volume %s found.' % name)
        return None if not vollist else vollist[0]
def find_volume ( self , name ) : LOG . debug ( 'Searching %(sn)s for %(name)s' , { 'sn' : self . ssn , 'name' : name } ) if name is None : return None vollist = self . _get_volume_list ( name , None , True ) if not vollist : LOG . debug ( 'Cannot find volume %(n)s in %(v)s. Searching SC.' , { 'n' : name , 'v' : self . vfname } ) vollist = self . _get_volume_list ( name , None , False ) if len ( vollist ) > 1 : raise Exception ( 'Multiple copies of volume %s found.' % name ) return None if not vollist else vollist [ 0 ]
Search self.ssn for volume of name.
Search self . ssn for volume of name .
"""Search self.ssn for volume of name.

        This searches the folder self.vfname (specified in the cinder.conf)
        for the volume first.  If not found it searches the entire array for
        the volume.

        :param name: Name of the volume to search for.  This is the cinder
                     volume ID.
        :returns: Dell Volume object or None if not found.
        :raises VolumeBackendAPIException: If multiple copies are found.
        """ # Cannot find a volume without the name # Look for our volume in our folder. # If an empty list was returned they probably moved the volumes or # changed the folder name so try again without the folder. # If multiple volumes of the same name are found we need to error. # blow up # We made it and should have a valid volume.
Dell Volume object or None if not found.
Dell Volume object or None if not found .
If multiple copies are found.
If multiple copies are found .
VolumeBackendAPIException
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 .