Change in vdsm[master]: sdm: createVolumeV2 does not return a task
alitke at redhat.com
alitke at redhat.com
Mon Feb 9 21:38:23 UTC 2015
Adam Litke has uploaded a new change for review.
Change subject: sdm: createVolumeV2 does not return a task
......................................................................
sdm: createVolumeV2 does not return a task
Change-Id: Ib4f78d9650a72215e354280a84dd9f02d488753e
Signed-off-by: Adam Litke <alitke at redhat.com>
---
M client/vdsClient.py
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/29/37629/1
diff --git a/client/vdsClient.py b/client/vdsClient.py
index 089c2e1..2821028 100644
--- a/client/vdsClient.py
+++ b/client/vdsClient.py
@@ -1072,14 +1072,14 @@
srcImgUUID = args[6] if len(args) > 7 else BLANK_UUID
srcVolUUID = args[7] if len(args) > 8 else BLANK_UUID
- image = self.s.createVolumeV2(
+ res = self.s.createVolumeV2(
sdUUID, imgUUID, newVolUUID, int(diskSize), int(volFormat),
description, srcImgUUID, srcVolUUID)
- if image['status']['code']:
- return image['status']['code'], image['status']['message']
+ if res['status']['code']:
+ return res['status']['code'], res['status']['message']
- return 0, image['uuid']
+ return 0, ''
def allocateVolume(self, args):
sdUUID, imgUUID, volUUID = args
--
To view, visit http://gerrit.ovirt.org/37629
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib4f78d9650a72215e354280a84dd9f02d488753e
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <alitke at redhat.com>
More information about the vdsm-patches
mailing list