diff --git a/rally/plugins/openstack/verification/tempest/context.py b/rally/plugins/openstack/verification/tempest/context.py index ff6f0855..a6649748 100644 --- a/rally/plugins/openstack/verification/tempest/context.py +++ b/rally/plugins/openstack/verification/tempest/context.py @@ -233,7 +233,7 @@ class TempestContext(context.VerifierContext): } LOG.debug("Creating image '%s'." % params["image_name"]) image_service = image.Image(self.clients) - image_obj = image_service.create_image(params) + image_obj = image_service.create_image(**params) LOG.debug("Image '%s' (ID = %s) has been " "successfully created!" % (image_obj.name, image_obj.id)) self._created_images.append(image_obj) diff --git a/tests/unit/plugins/openstack/verification/tempest/test_context.py b/tests/unit/plugins/openstack/verification/tempest/test_context.py index 640c66dd..658ccc97 100644 --- a/tests/unit/plugins/openstack/verification/tempest/test_context.py +++ b/tests/unit/plugins/openstack/verification/tempest/test_context.py @@ -229,7 +229,7 @@ class TempestContextTestCase(test.TestCase): "disk_format": CONF.tempest.img_disk_format, "image_name": mock.ANY, "visibility": "public"} - client.create_image.assert_called_once_with(params) + client.create_image.assert_called_once_with(**params) def test__discover_or_create_flavor_when_flavor_exists(self): client = self.context.clients.nova()