From 5be3200bc8c9cb617b1c59613bacddc1fda3d20f Mon Sep 17 00:00:00 2001 From: Philipp Marek Date: Mon, 8 Feb 2016 11:39:06 +0100 Subject: [PATCH] DRBD: Fix arguments for resize_volume DBus API call. Change-Id: I754cd809ca7f7d3cc36e3a66b78e592053be1cee --- cinder/tests/unit/test_drbdmanagedrv.py | 2 +- cinder/volume/drivers/drbdmanagedrv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/tests/unit/test_drbdmanagedrv.py b/cinder/tests/unit/test_drbdmanagedrv.py index 05acabc68..3ad639995 100644 --- a/cinder/tests/unit/test_drbdmanagedrv.py +++ b/cinder/tests/unit/test_drbdmanagedrv.py @@ -382,7 +382,7 @@ class DrbdManageIscsiTestCase(test.TestCase): self.assertEqual("res", dmd.odm.calls[1][1]) self.assertEqual(2, dmd.odm.calls[1][2]) self.assertEqual(-1, dmd.odm.calls[1][3]) - self.assertEqual(5242880, dmd.odm.calls[1][4]['size']) + self.assertEqual(5242880, dmd.odm.calls[1][4]) def test_create_cloned_volume(self): srcvol = {'project_id': 'testprjid', diff --git a/cinder/volume/drivers/drbdmanagedrv.py b/cinder/volume/drivers/drbdmanagedrv.py index a385e01aa..1ba6985b3 100644 --- a/cinder/volume/drivers/drbdmanagedrv.py +++ b/cinder/volume/drivers/drbdmanagedrv.py @@ -537,7 +537,7 @@ class DrbdManageBaseDriver(driver.VolumeDriver): res = self.call_or_reconnect(self.odm.resize_volume, d_res_name, d_vol_nr, -1, - {"size": self._vol_size_to_dm(new_size)}, + self._vol_size_to_dm(new_size), 0) self._check_result(res) return 0 -- 2.45.2