From 0de247948b324bd3b0f91b606803a7ec5411423e Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Wed, 25 Sep 2019 14:29:21 +0200 Subject: [PATCH] Pass a real session to ironicclient in _get_fake_client Using a dict is not guaranteed to work (and actually doesn't with ironicclient 3.0.0, although a few other things are broken with it). Change-Id: I59c113b22c60f04e89a631ade8039c4fa62933dc --- mistral/actions/openstack/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistral/actions/openstack/actions.py b/mistral/actions/openstack/actions.py index 56a5e3138..901ceb40b 100644 --- a/mistral/actions/openstack/actions.py +++ b/mistral/actions/openstack/actions.py @@ -362,7 +362,7 @@ class IronicAction(base.OpenStackAction): def _get_fake_client(cls): return cls._get_client_class()( endpoint_override="http://127.0.0.1:6385/", - session={"fake": "session"} + session=ks_session.Session(), )