Return ClusterID for resize and upgrade

Magnum needs to return ClusterID for resize and upgrade to be
consistent with other actions of cluster.

Task: 35988
Story: 2002210

Change-Id: Ib15e0cbecd1cbfa57a3008a3f3917d37be7f8f0c
This commit is contained in:
Feilong Wang 2019-07-25 10:01:56 +12:00
parent 810e81195e
commit 92d516903a
2 changed files with 7 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class ActionsController(base.Controller):
}
@base.Controller.api_version("1.7")
@expose.expose(None, types.uuid_or_name,
@expose.expose(ClusterID, types.uuid_or_name,
body=ClusterResizeRequest, status_code=202)
def resize(self, cluster_ident, cluster_resize_req):
"""Resize a cluster.
@ -127,7 +127,7 @@ class ActionsController(base.Controller):
return ClusterID(cluster.uuid)
@base.Controller.api_version("1.8")
@expose.expose(None, types.uuid_or_name,
@expose.expose(ClusterID, types.uuid_or_name,
body=ClusterUpgradeRequest, status_code=202)
def upgrade(self, cluster_ident, cluster_upgrade_req):
"""Upgrade a cluster.

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Now the resize and upgrade action of cluster will return cluster ID to be
consistent with other actions of Magnum cluster.