tempest/services/compute/v3/xml/flavors_client.py
def update_flavor_extra_spec(self, flavor_id, key, **kwargs):
        """Update extra Specs details of the mentioned flavor and key."""
        doc = Document()
        for (k, v) in kwargs.items():
            element = Element(k)
            doc.append(element)
            value = Text(v)
            element.append(value)

        resp, body = self.put('flavors/%s/flavor-extra-specs/%s' %
                              (flavor_id, key),
                              str(doc), self.headers)
        body = xml_to_json(etree.fromstring(body))
        return resp, {key: body}
Update extra Specs details of the mentioned flavor and key.
Update extra Specs details of the mentioned flavor and key.
Update extra Specs details of the mentioned flavor and key .
def update_flavor_extra_spec(self, flavor_id, key, **kwargs):
        doc = Document()
        for (k, v) in kwargs.items():
            element = Element(k)
            doc.append(element)
            value = Text(v)
            element.append(value)
        resp, body = self.put('flavors/%s/flavor-extra-specs/%s' %
                              (flavor_id, key),
                              str(doc), self.headers)
        body = xml_to_json(etree.fromstring(body))
        return resp, {key: body}
def update_flavor_extra_spec ( self , flavor_id , key , ** kwargs ) : doc = Document ( ) for ( k , v ) in kwargs . items ( ) : element = Element ( k ) doc . append ( element ) value = Text ( v ) element . append ( value ) resp , body = self . put ( 'flavors/%s/flavor-extra-specs/%s' % ( flavor_id , key ) , str ( doc ) , self . headers ) body = xml_to_json ( etree . fromstring ( body ) ) return resp , { key : body }
Update extra Specs details of the mentioned flavor and key.
Update extra Specs details of the mentioned flavor and key .
"""Update extra Specs details of the mentioned flavor and key."""
self
flavor_id
key