diff --git a/zaza/openstack/charm_tests/ceph/rbd_mirror/tests.py b/zaza/openstack/charm_tests/ceph/rbd_mirror/tests.py index 1abf2245d..bf4ed4369 100644 --- a/zaza/openstack/charm_tests/ceph/rbd_mirror/tests.py +++ b/zaza/openstack/charm_tests/ceph/rbd_mirror/tests.py @@ -801,7 +801,7 @@ def test_100_forced_juju_failover(self): action_params={ 'pools': ','.join(site_b_pools), }) - self.assertEqual(int(result.get('Code')), 0) + self.assertEqual(int(result.results["return-code"]), 0) # The action may not show up as 'failed' if there are no pools that # needed to be promoted.