Fix python ironicclient default version

Change from '1.0' => '1' client version to enable import of the client.

Change-Id: Ic3ead1422e352cc73d50e20e5846c55a92de601f
This commit is contained in:
Roman Vasilets 2015-06-18 17:13:21 +03:00
parent 958812f1b6
commit 1fbaacad92
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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):