Fixed call to self._wait in _wait_for_new
authorPete Vander Giessen <petevg@gmail.com>
Wed, 2 Nov 2016 19:25:18 +0000 (15:25 -0400)
committerPete Vander Giessen <petevg@gmail.com>
Wed, 2 Nov 2016 19:25:18 +0000 (15:25 -0400)
Added 'add'

juju/model.py

index b74a6c8..d63f6d0 100644 (file)
@@ -567,7 +567,7 @@ class Model(object):
         This coroutine blocks until the new object appears in the model.
 
         """
-        return await self._wait(entity_type, entity_id, predicate)
+        return await self._wait(entity_type, entity_id, 'add', predicate)
 
     async def wait_for_action(self, action_id):
         """Given an action, wait for it to complete."""