openstack: Allow specifying address to keystone

This commit is contained in:
Frode Nordahl
2018-08-09 07:26:43 +02:00
parent 923049f9a8
commit 910a6ba6e2
+4 -2
View File
@@ -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']