Yeela Kaplan has uploaded a new change for review.

Change subject: hsm: deleteImage fails because of wrong dictionary use
......................................................................

hsm: deleteImage fails because of wrong dictionary use

Change-Id: I81f9a5aa63c0914e3b934046454df64ccd39c269
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=964649
Signed-off-by: Yeela Kaplan <[email protected]>
---
M vdsm/storage/hsm.py
M vdsm/storage/sd.py
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/83/17383/1

diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index 5da6ae6..4f95819 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -1537,7 +1537,7 @@
             if needFake:
                 img = image.Image(os.path.join(self.storage_repository,
                                                spUUID))
-                tName = volsByImg.iterkeys()[0]
+                tName = volsByImg.keys()[0]
                 tParams = dom.produceVolume(imgUUID, tName).getVolumeParams()
                 img.createFakeTemplate(sdUUID=sdUUID, volParams=tParams)
             self._spmSchedule(spUUID, "deleteImage_%s" % imgUUID, lambda: True)
diff --git a/vdsm/storage/sd.py b/vdsm/storage/sd.py
index 36c4877..38cf888 100644
--- a/vdsm/storage/sd.py
+++ b/vdsm/storage/sd.py
@@ -149,7 +149,7 @@
 def getVolsOfImage(allVols, imgUUID):
     """ Filter allVols dict for volumes related to imgUUID.
 
-    Returns {volName: (([templateImge], imgUUID, [otherImg]), volPar)
+    Returns {volName: (([templateImage], imgUUID, [otherImg]), volPar)
     For a template volume will be more than one image entry.
 
     allVols: The getAllVols() return dict.


-- 
To view, visit http://gerrit.ovirt.org/17383
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I81f9a5aa63c0914e3b934046454df64ccd39c269
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to