Fix inappropriate parameters

It's easy to misunderstand for using attachment_id.

Change-Id: I3bd3b96d721fe82a37b41d98d4d3d0ab59178f06
This commit is contained in:
zhangdaolong 2017-07-13 09:59:54 +08:00
parent f0f78b84c7
commit 932847b644

View File

@ -287,10 +287,10 @@ class API(base.Base):
novaclient(context).servers.update(instance_id, name=name)
)
def update_server_volume(self, context, instance_id, attachment_id,
def update_server_volume(self, context, instance_id, volume_id,
new_volume_id):
novaclient(context).volumes.update_server_volume(instance_id,
attachment_id,
volume_id,
new_volume_id)
def keypair_create(self, context, name):