Set and log model name

This commit is contained in:
Liam Young
2022-09-08 12:55:04 +00:00
parent f3724b2281
commit 33a6408c83
@@ -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(