Merge "Add policy config for get_flavor_service_profile operation"

This commit is contained in:
Zuul 2019-10-11 18:17:19 +00:00 committed by Gerrit Code Review
commit 547c6b5b5c
1 changed files with 8 additions and 9 deletions

View File

@ -122,6 +122,14 @@ rules = [
]
),
policy.RuleDefault(
'get_flavor_service_profile',
base.RULE_ANY,
('Get a flavor associated with a given service profiles. '
'There is no corresponding GET operations in API currently. '
'This rule is currently referred only in the DELETE '
'of flavor_service_profile.')
),
policy.DocumentedRuleDefault(
'create_flavor_service_profile',
base.RULE_ADMIN_ONLY,
@ -144,15 +152,6 @@ rules = [
},
]
),
# TODO(amotoki): GET /flavors/{flavor_id}/service_profiles/{profile_id}
# does not work and leads to an internal server error.
# It is not defined in the API reference either.
# It needs investigation and temporarily commented out.
# policy.RuleDefault(
# 'get_flavor_service_profile',
# base.RULE_ANY,
# 'Get a flavor associate with a given service profiles',
# ),
]