Update volume-attachment API url in policies

Correct url is /servers/{server_id}/os-volume_attachments/{volume_id} [1].
'volume_id' and 'attachment_id' are conceptually different.

[1] https://developer.openstack.org/api-ref/compute/#show-a-detail-of-a-volume-attachment

Change-Id: Idbb165d8b695f5609306ddc678d0ad6fc559ab7e
This commit is contained in:
Chen 2018-08-27 21:32:43 +08:00
parent 17b69575bc
commit 864d6d675d
1 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ volumes_attachments_policies = [
{
'method': 'GET',
'path':
'/servers/{server_id}/os-volume_attachments/{attachment_id}'
'/servers/{server_id}/os-volume_attachments/{volume_id}'
}
]),
policy.DocumentedRuleDefault(
@ -60,7 +60,7 @@ volumes_attachments_policies = [
{
'method': 'PUT',
'path':
'/servers/{server_id}/os-volume_attachments/{attachment_id}'
'/servers/{server_id}/os-volume_attachments/{volume_id}'
}
]),
policy.DocumentedRuleDefault(
@ -71,7 +71,7 @@ volumes_attachments_policies = [
{
'method': 'DELETE',
'path':
'/servers/{server_id}/os-volume_attachments/{attachment_id}'
'/servers/{server_id}/os-volume_attachments/{volume_id}'
}
]),
]