From 1fbaacad92fcc0cb9328e72801b848a2ee4abfea Mon Sep 17 00:00:00 2001 From: Roman Vasilets Date: Thu, 18 Jun 2015 17:13:21 +0300 Subject: [PATCH] Fix python ironicclient default version Change from '1.0' => '1' client version to enable import of the client. Change-Id: Ic3ead1422e352cc73d50e20e5846c55a92de601f --- rally/osclients.py | 2 +- tests/unit/test_osclients.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rally/osclients.py b/rally/osclients.py index 9d9820991c..6db28b6028 100644 --- a/rally/osclients.py +++ b/rally/osclients.py @@ -283,7 +283,7 @@ class Clients(object): return client @cached - def ironic(self, version="1.0"): + def ironic(self, version="1"): """Return Ironic client.""" from ironicclient import client as ironic kc = self.keystone() diff --git a/tests/unit/test_osclients.py b/tests/unit/test_osclients.py index fc735d3be3..c5346a3aed 100644 --- a/tests/unit/test_osclients.py +++ b/tests/unit/test_osclients.py @@ -344,7 +344,7 @@ class OSClientsTestCase(test.TestCase): "insecure": self.endpoint.insecure, "cacert": self.endpoint.cacert } - mock_ironic.client.get_client.assert_called_once_with("1.0", **kw) + mock_ironic.client.get_client.assert_called_once_with("1", **kw) self.assertEqual(fake_ironic, self.clients.cache["ironic"]) def test_sahara(self):