@utils.arg('flavor', metavar='<flavor>', help=_('Flavor name or ID to add access for the given tenant.'))
@utils.arg('tenant', metavar='<tenant_id>', help=_('Tenant ID to add flavor access for.'))
def do_flavor_access_add(cs, args):
 flavor = _find_flavor(cs, args.flavor)
 access_list = cs.flavor_access.add_tenant_access(flavor, args.tenant)
 columns = ['Flavor_ID', 'Tenant_ID']
 utils.print_list(access_list, columns)

@ utils . arg ( 'flavor' , metavar = '<flavor>' , help = _ ( 'Flavor name or ID to add access for the given tenant.' ) ) @ utils . arg ( 'tenant' , metavar = '<tenant_id>' , help = _ ( 'Tenant ID to add flavor access for.' ) ) def do_flavor_access_add ( cs , args ) : flavor = _find_flavor ( cs , args . flavor ) access_list = cs . flavor_access . add_tenant_access ( flavor , args . tenant ) columns = [ 'Flavor_ID' , 'Tenant_ID' ] utils . print_list ( access_list , columns )
add flavor access for the given tenant .