From 910a6ba6e29e079fc26266b7baa3d7e54529c715 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Thu, 9 Aug 2018 07:26:43 +0200 Subject: [PATCH] openstack: Allow specifying address to keystone --- zaza/utilities/openstack.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zaza/utilities/openstack.py b/zaza/utilities/openstack.py index 0e6f8aa..ba4edcb 100644 --- a/zaza/utilities/openstack.py +++ b/zaza/utilities/openstack.py @@ -1219,7 +1219,7 @@ def get_keystone_ip(): return unit.public_address -def get_overcloud_auth(): +def get_overcloud_auth(address=None): """Get overcloud OpenStack authentication from the environment. :returns: Dictionary of authentication settings @@ -1234,7 +1234,9 @@ def get_overcloud_auth(): else: transport = 'http' port = 5000 - address = get_keystone_ip() + + if not address: + address = get_keystone_ip() os_version = get_current_os_versions('keystone')['keystone']