def _fake_flavor_get(context, id): flavor = stubs._fake_flavor_get(context, id) flavor['extra_specs'].update({ 'quota:cpu_shares_level': 'custom', 'quota:cpu_shares_share': 1948 }) return flavor
def _fake_flavor_get(context, id): flavor = stubs._fake_flavor_get(context, id) flavor['extra_specs'].update({ 'quota:cpu_limit': 7, 'quota:cpu_reservation': 6 }) return flavor
def _fake_flavor_get(context, id): flavor = stubs._fake_flavor_get(context, id) flavor['extra_specs'].update({'quota:cpu_shares_level': 'custom', 'quota:cpu_shares_share': 1948}) return flavor
def _fake_flavor_get(context, id): flavor = stubs._fake_flavor_get(context, id) flavor['extra_specs'].update({'quota:cpu_shares_level': 'high'}) return flavor
def _fake_flavor_get(context, id): flavor = stubs._fake_flavor_get(context, id) flavor['extra_specs'].update({'quota:cpu_limit': 7, 'quota:cpu_reservation': 6}) return flavor