From: Pete Vander Giessen Date: Fri, 4 Nov 2016 15:04:23 +0000 (-0400) Subject: Fixed status to check for for failed messages in unit.run X-Git-Tag: 0.1.0~56^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0a0206819df837e06dd49fdf55d8a5dffe78fad9;p=osm%2FN2VC.git Fixed status to check for for failed messages in unit.run error -> failed --- 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)