dell_storagecenter_driver/dell_storagecenter_api.py
def _find_mappings(self, scvolume):
        """Find the Dell volume object mappings.

        :param scvolume: Dell volume object.
        :returns: A list of Dell mappings objects.
        """
        mappings = []
        if scvolume.get('active', False):
            r = self.client.get('StorageCenter/ScVolume/%s/MappingList'
                                % self._get_id(scvolume))
            if self._get_result(r):
                mappings = self._get_json(r)
            else:
                LOG.debug('MappingList error: %(code)d %(reason)s',
                          {'code': r.status_code,
                           'reason': r.reason})
                LOG.error('Unable to find volume mappings: %s',
                          scvolume.get('name'))
        else:
            LOG.error('_find_mappings: volume is not active')
        LOG.debug(mappings)
        return mappings
Find the Dell volume object mappings.

        :param scvolume: Dell volume object.
        :returns: A list of Dell mappings objects.
        
Find the Dell volume object mappings.
Find the Dell volume object mappings .
def _find_mappings(self, scvolume):
        mappings = []
        if scvolume.get('active', False):
            r = self.client.get('StorageCenter/ScVolume/%s/MappingList'
                                % self._get_id(scvolume))
            if self._get_result(r):
                mappings = self._get_json(r)
            else:
                LOG.debug('MappingList error: %(code)d %(reason)s',
                          {'code': r.status_code,
                           'reason': r.reason})
                LOG.error('Unable to find volume mappings: %s',
                          scvolume.get('name'))
        else:
            LOG.error('_find_mappings: volume is not active')
        LOG.debug(mappings)
        return mappings
def _find_mappings ( self , scvolume ) : mappings = [ ] if scvolume . get ( 'active' , False ) : r = self . client . get ( 'StorageCenter/ScVolume/%s/MappingList' % self . _get_id ( scvolume ) ) if self . _get_result ( r ) : mappings = self . _get_json ( r ) else : LOG . debug ( 'MappingList error: %(code)d %(reason)s' , { 'code' : r . status_code , 'reason' : r . reason } ) LOG . error ( 'Unable to find volume mappings: %s' , scvolume . get ( 'name' ) ) else : LOG . error ( '_find_mappings: volume is not active' ) LOG . debug ( mappings ) return mappings
Find the Dell volume object mappings.
Find the Dell volume object mappings .
"""Find the Dell volume object mappings.

        :param scvolume: Dell volume object.
        :returns: A list of Dell mappings objects.
        """
A list of Dell mappings objects.
A list of Dell mappings objects .
self
scvolume
Dell volume object.
Dell volume object .