tempest/services/baremetal/v1/client_xml.py
def _patch_request(self, resource_name, uuid, patch_object):
        """Changes Content-Type header to application/json for jsonpatch."""

        self.headers['Content-Type'] = 'application/json'
        try:
            super(self)._patch_request(self, resource_name, uuid, patch_object)
        finally:
            self.headers['Content-Type'] = 'application/xml'
Changes Content-Type header to application/json for jsonpatch.
Changes Content-Type header to application/json for jsonpatch.
Changes Content - Type header to application / json for jsonpatch .
def _patch_request(self, resource_name, uuid, patch_object):
        self.headers['Content-Type'] = 'application/json'
        try:
            super(self)._patch_request(self, resource_name, uuid, patch_object)
        finally:
            self.headers['Content-Type'] = 'application/xml'
def _patch_request ( self , resource_name , uuid , patch_object ) : self . headers [ 'Content-Type' ] = 'application/json' try : super ( self ) . _patch_request ( self , resource_name , uuid , patch_object ) finally : self . headers [ 'Content-Type' ] = 'application/xml'
Changes Content-Type header to application/json for jsonpatch.
Changes Content - Type header to application / json for jsonpatch .
"""Changes Content-Type header to application/json for jsonpatch."""
self
resource_name
uuid
patch_object