dell_storagecenter_driver/dell_storagecenter_api.py
def _find_serveros(self, osname='Red Hat Linux 6.x'):
        """Returns the serveros instance id of the specified osname.

        Required to create a Dell server object.

        We do not know that we are Red Hat Linux 6.x but that works
        best for Red Hat and Ubuntu.  So we use that.

        :param osname: The name of the OS to look for.
        :returns: InstanceId of the ScServerOperatingSystem object.
        """
        pf = self._get_payload_filter()
        pf.append('scSerialNumber', self.ssn)
        r = self.client.post('StorageCenter/ScServerOperatingSystem/GetList',
                             pf.payload)
        if self._check_result(r):
            oslist = self._get_json(r)
            for srvos in oslist:
                name = srvos.get('name', 'nope')
                if name.lower() == osname.lower():
                    # Found it return the id
                    return self._get_id(srvos)

        LOG.warning('ScServerOperatingSystem GetList return: '
                    '%(code)d %(reason)s',
                    {'code': r.status_code,
                     'reason': r.reason})
        return None
Returns the serveros instance id of the specified osname.

        Required to create a Dell server object.

        We do not know that we are Red Hat Linux 6.x but that works
        best for Red Hat and Ubuntu.  So we use that.

        :param osname: The name of the OS to look for.
        :returns: InstanceId of the ScServerOperatingSystem object.
        
Returns the serveros instance id of the specified osname.
Required to create a Dell server object.

We do not know that we are Red Hat Linux 6.x but that works
best for Red Hat and Ubuntu.  So we use that.
Returns the serveros instance id of the specified osname . Required to create a Dell server object . We do not know that we are Red Hat Linux 6 . x but that works best for Red Hat and Ubuntu . So we use that .
def _find_serveros(self, osname='Red Hat Linux 6.x'):
        pf = self._get_payload_filter()
        pf.append('scSerialNumber', self.ssn)
        r = self.client.post('StorageCenter/ScServerOperatingSystem/GetList',
                             pf.payload)
        if self._check_result(r):
            oslist = self._get_json(r)
            for srvos in oslist:
                name = srvos.get('name', 'nope')
                if name.lower() == osname.lower():
                    return self._get_id(srvos)
        LOG.warning('ScServerOperatingSystem GetList return: '
                    '%(code)d %(reason)s',
                    {'code': r.status_code,
                     'reason': r.reason})
        return None
def _find_serveros ( self , osname = 'Red Hat Linux 6.x' ) : pf = self . _get_payload_filter ( ) pf . append ( 'scSerialNumber' , self . ssn ) r = self . client . post ( 'StorageCenter/ScServerOperatingSystem/GetList' , pf . payload ) if self . _check_result ( r ) : oslist = self . _get_json ( r ) for srvos in oslist : name = srvos . get ( 'name' , 'nope' ) if name . lower ( ) == osname . lower ( ) : return self . _get_id ( srvos ) LOG . warning ( 'ScServerOperatingSystem GetList return: ' '%(code)d %(reason)s' , { 'code' : r . status_code , 'reason' : r . reason } ) return None
Returns the serveros instance id of the specified osname.
Returns the serveros instance id of the specified osname .
"""Returns the serveros instance id of the specified osname.

        Required to create a Dell server object.

        We do not know that we are Red Hat Linux 6.x but that works
        best for Red Hat and Ubuntu.  So we use that.

        :param osname: The name of the OS to look for.
        :returns: InstanceId of the ScServerOperatingSystem object.
        """ # Found it return the id
InstanceId of the ScServerOperatingSystem object.
InstanceId of the ScServerOperatingSystem object .
self
osname
The name of the OS to look for.
The name of the OS to look for .