Correct description for encryption-type policies

The current 'path' (used only for documentation) is incorrect.  Not
a big deal except that using the encryption_id as described there
results in a 404, which is confusing to users.

Change-Id: I3c0afece33859552e85cd89626b349b43ebe038a
Closes-bug: #1873051
This commit is contained in:
Brian Rosmaita 2020-04-15 14:17:40 -04:00
parent 65604daae0
commit ab126efcbb

View File

@ -93,7 +93,7 @@ volume_type_policies = [
},
{
'method': 'GET',
'path': '/types/{type_id}/encryption/{encryption_id}'
'path': '/types/{type_id}/encryption/{key}'
},
{
'method': 'DELETE',
@ -113,15 +113,16 @@ volume_type_policies = [
policy.DocumentedRuleDefault(
name=GET_ENCRYPTION_POLICY,
check_str=ENCRYPTION_BASE_POLICY_RULE,
description="Show, list volume type encryption.",
description="Show a volume type's encryption type, "
"show an encryption specs item.",
operations=[
{
'method': 'GET',
'path': '/types/{type_id}/encryption/{encryption_id}'
'path': '/types/{type_id}/encryption'
},
{
'method': 'GET',
'path': '/types/{type_id}/encryption'
'path': '/types/{type_id}/encryption/{key}'
}
]),
policy.DocumentedRuleDefault(