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:
parent
958812f1b6
commit
1fbaacad92
@ -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()
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user