tempest/services/compute/v3/json/flavors_client.py
def add_flavor_access(self, flavor_id, tenant_id):
        """Add flavor access for the specified tenant."""
        post_body = {
            'add_tenant_access': {
                'tenant_id': tenant_id
            }
        }
        post_body = json.dumps(post_body)
        resp, body = self.post('flavors/%s/action' % flavor_id,
                               post_body, self.headers)
        body = json.loads(body)
        return resp, body['flavor_access']
Add flavor access for the specified tenant.
Add flavor access for the specified tenant.
Add flavor access for the specified tenant .
def add_flavor_access(self, flavor_id, tenant_id):
        post_body = {
            'add_tenant_access': {
                'tenant_id': tenant_id
            }
        }
        post_body = json.dumps(post_body)
        resp, body = self.post('flavors/%s/action' % flavor_id,
                               post_body, self.headers)
        body = json.loads(body)
        return resp, body['flavor_access']
def add_flavor_access ( self , flavor_id , tenant_id ) : post_body = { 'add_tenant_access' : { 'tenant_id' : tenant_id } } post_body = json . dumps ( post_body ) resp , body = self . post ( 'flavors/%s/action' % flavor_id , post_body , self . headers ) body = json . loads ( body ) return resp , body [ 'flavor_access' ]
Add flavor access for the specified tenant.
Add flavor access for the specified tenant .
"""Add flavor access for the specified tenant."""
self
flavor_id
tenant_id