From 932847b644d818fad5015ad385be3e9817fbb494 Mon Sep 17 00:00:00 2001 From: zhangdaolong Date: Thu, 13 Jul 2017 09:59:54 +0800 Subject: [PATCH] Fix inappropriate parameters It's easy to misunderstand for using attachment_id. Change-Id: I3bd3b96d721fe82a37b41d98d4d3d0ab59178f06 --- manila/compute/nova.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manila/compute/nova.py b/manila/compute/nova.py index a38476fa37..7ea47d717c 100644 --- a/manila/compute/nova.py +++ b/manila/compute/nova.py @@ -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):