From dc3ca2edef55ba2a6224c51f1f6fb8250fc90b87 Mon Sep 17 00:00:00 2001 From: David Ames Date: Tue, 21 May 2019 20:36:27 +0000 Subject: [PATCH] Bug fix for HA SAML tests --- zaza/openstack/charm_tests/saml_mellon/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/saml_mellon/tests.py b/zaza/openstack/charm_tests/saml_mellon/tests.py index 4eafda0..79a36f9 100644 --- a/zaza/openstack/charm_tests/saml_mellon/tests.py +++ b/zaza/openstack/charm_tests/saml_mellon/tests.py @@ -39,10 +39,10 @@ class CharmKeystoneSAMLMellonTest(BaseKeystoneTest): def test_run_get_sp_metadata_action(self): """Validate the get-sp-metadata action.""" + unit = zaza.model.get_units(self.application_name)[0] if self.vip: ip = self.vip else: - unit = zaza.model.get_units(self.application_name)[0] ip = unit.public_address action = zaza.model.run_action(unit.entity_id, self.action)