From 11f3060f6b1564d6497cbfc2b2f80251bcc27ca3 Mon Sep 17 00:00:00 2001 From: Aurelien Lourot Date: Wed, 9 Sep 2020 10:08:37 +0200 Subject: [PATCH] Fix unit-name -> app-name conversion --- zaza/openstack/charm_tests/hacluster/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/hacluster/tests.py b/zaza/openstack/charm_tests/hacluster/tests.py index e02832b..29751e1 100644 --- a/zaza/openstack/charm_tests/hacluster/tests.py +++ b/zaza/openstack/charm_tests/hacluster/tests.py @@ -120,7 +120,8 @@ class HaclusterScalebackTest(HaclusterBaseTest): logging.info('OK') logging.info('Updating corosync ring') - hacluster_app_name = other_hacluster_unit.application + hacluster_app_name = zaza.model.get_unit_from_name( + other_hacluster_unit).application zaza.model.run_action_on_leader( hacluster_app_name, 'update-ring',