dell_storagecenter_driver/dell_storagecenter_api.py
def _check_result(self, rest_response):
        """Checks and logs API responses.

        :param rest_response: The result from a REST API call.
        :returns: ``True`` if success, ``False`` otherwise.
        """
        if 200 <= rest_response.status_code < 300:
            # API call was a normal success
            return True

        LOG.debug('REST call result:\n'
                  '\tCode:   %(code)d\n'
                  '\tReason: %(reason)s\n'
                  '\tText:   %(text)s',
                  {'code': rest_response.status_code,
                   'reason': rest_response.reason,
                   'text': rest_response.text})
        return False
Checks and logs API responses.

        :param rest_response: The result from a REST API call.
        :returns: ``True`` if success, ``False`` otherwise.
        
Checks and logs API responses.
Checks and logs API responses .
def _check_result(self, rest_response):
        if 200 <= rest_response.status_code < 300:
            return True
        LOG.debug('REST call result:\n'
                  '\tCode:   %(code)d\n'
                  '\tReason: %(reason)s\n'
                  '\tText:   %(text)s',
                  {'code': rest_response.status_code,
                   'reason': rest_response.reason,
                   'text': rest_response.text})
        return False
def _check_result ( self , rest_response ) : if 200 <= rest_response . status_code < 300 : return True LOG . debug ( 'REST call result:\n' '\tCode:   %(code)d\n' '\tReason: %(reason)s\n' '\tText:   %(text)s' , { 'code' : rest_response . status_code , 'reason' : rest_response . reason , 'text' : rest_response . text } ) return False
Checks and logs API responses.
Checks and logs API responses .
"""Checks and logs API responses.

        :param rest_response: The result from a REST API call.
        :returns: ``True`` if success, ``False`` otherwise.
        """ # API call was a normal success
``True`` if success, ``False`` otherwise.
` ` True ` ` if success ` ` False ` ` otherwise .
self
rest_response
The result from a REST API call.
The result from a REST API call .