From 33a6408c839cd82a9a3894e79e1b55782695d44b Mon Sep 17 00:00:00 2001 From: Liam Young Date: Thu, 8 Sep 2022 12:55:04 +0000 Subject: [PATCH] Set and log model name --- zaza/openstack/charm_tests/manila_ganesha/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zaza/openstack/charm_tests/manila_ganesha/tests.py b/zaza/openstack/charm_tests/manila_ganesha/tests.py index 9622f67..158fb1a 100644 --- a/zaza/openstack/charm_tests/manila_ganesha/tests.py +++ b/zaza/openstack/charm_tests/manila_ganesha/tests.py @@ -48,9 +48,11 @@ class ManilaGaneshaTests(manila_tests.ManilaBaseTest): # this is a best-guestimate arrived at by looking for applications # with the word 'ganesha' in their names. ganeshas = [ - app for app in zaza.model.sync_deployed() + app for app in zaza.model.sync_deployed(model_name=self.model_name) if 'ganesha' in app and 'mysql' not in app] - logging.info('Found ganeshas: {}'.format(ganeshas)) + logging.info('Found ganeshas in model {}: {}'.format( + self.model_name, + ganeshas)) for ganesha in ganeshas: ganesha_unit = zaza.model.get_units(ganesha)[0] hacluster_unit = zaza_utils_juju.get_subordinate_units(