From 0a0206819df837e06dd49fdf55d8a5dffe78fad9 Mon Sep 17 00:00:00 2001 From: Pete Vander Giessen Date: Fri, 4 Nov 2016 11:04:23 -0400 Subject: [PATCH] Fixed status to check for for failed messages in unit.run error -> failed --- juju/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juju/model.py b/juju/model.py index d63f6d0..953aa8f 100644 --- a/juju/model.py +++ b/juju/model.py @@ -578,7 +578,7 @@ class Model(object): action_id = action_id[7:] def predicate(delta): - return delta.data['status'] in ('completed', 'error') + return delta.data['status'] in ('completed', 'failed') return await self._wait('action', action_id, 'change', predicate) -- 2.25.1