def _op(self, method, path='', data=None, headers=None):
        """Overrides the base method to support retrying the operation.

        :param method: The HTTP method to be used, e.g: GET, POST,
            PUT, PATCH, etc...
        :param path: The sub-URI path to the resource.
        :param data: Optional JSON data.
        :param headers: Optional dictionary of headers.
        :returns: The response from the connector.Connector's _op method.
        """
        resp = super(HPEConnector, self)._op(method, path, data,
                                             headers, allow_redirects=False)
        # With IPv6, Gen10 server gives redirection response with new path with
        # a prefix of '/' so this check is required
        if resp.status_code == 308:
            path = urlparse(resp.headers['Location']).path
            resp = super(HPEConnector, self)._op(method, path, data, headers)
        return resp
def _op ( self , method , path = '' , data = None , headers = None ) : resp = super ( HPEConnector , self ) . _op ( method , path , data , headers , allow_redirects = False ) if resp . status_code == 308 : path = urlparse ( resp . headers [ 'Location' ] ) . path resp = super ( HPEConnector , self ) . _op ( method , path , data , headers ) return resp
Overrides the base method to support retrying the operation.

        :param method: The HTTP method to be used, e.g: GET, POST,
            PUT, PATCH, etc...
        :param path: The sub-URI path to the resource.
        :param data: Optional JSON data.
        :param headers: Optional dictionary of headers.
        :returns: The response from the connector.Connector's _op method.