Fixed status to check for for failed messages in unit.run
authorPete Vander Giessen <petevg@gmail.com>
Fri, 4 Nov 2016 15:04:23 +0000 (11:04 -0400)
committerPete Vander Giessen <petevg@gmail.com>
Fri, 4 Nov 2016 15:04:23 +0000 (11:04 -0400)
error -> failed

juju/model.py

index d63f6d0..953aa8f 100644 (file)
@@ -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)