From 6cfe5f2a6d99c9fff9386794149b273bd2442bd1 Mon Sep 17 00:00:00 2001 From: MORITA Kazutaka Date: Thu, 17 Jan 2013 16:40:24 +0900 Subject: [PATCH] Fix sheepdog volume creation SheepdogDriver uses an undefined method _sizestr. This patch removes it. Change-Id: Id157df5c4d69148257060926dbac7b5bc2804ee0 Fixes: bug #1100655. --- cinder/volume/drivers/sheepdog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/sheepdog.py b/cinder/volume/drivers/sheepdog.py index ed1466ddb..175686332 100644 --- a/cinder/volume/drivers/sheepdog.py +++ b/cinder/volume/drivers/sheepdog.py @@ -53,7 +53,7 @@ class SheepdogDriver(driver.VolumeDriver): """Creates a sheepdog volume""" self._try_execute('qemu-img', 'create', "sheepdog:%s" % volume['name'], - self._sizestr(volume['size'])) + '%sG' % volume['size']) def create_volume_from_snapshot(self, volume, snapshot): """Creates a sheepdog volume from a snapshot.""" -- 2.45.2