From 3465dacb96331e7a688660e39f0526319fe33a31 Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Thu, 19 Sep 2019 15:49:14 +0200 Subject: [PATCH] change approach to waiting on results bug fix --- zaza/openstack/charm_tests/policyd/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/policyd/tests.py b/zaza/openstack/charm_tests/policyd/tests.py index f1abb00..d42b4b7 100644 --- a/zaza/openstack/charm_tests/policyd/tests.py +++ b/zaza/openstack/charm_tests/policyd/tests.py @@ -138,7 +138,7 @@ async def async_block_until_wl_status_info_starts_with( async def _unit_status(): model_status = await zaza_model.async_get_status() wl_infos = [v['workload-status']['info'] - for k, v in model_status.applications[app]['units'] + for k, v in model_status.applications[app]['units'].items() if k.split('/')[0] == app] g = (s.startswith(status) for s in wl_infos) if negate_match: