Remove EntityType from juju watcher and workaround juju bug for retrieving the status 12/9712/4
authorDavid Garcia <david.garcia@canonical.com>
Wed, 16 Sep 2020 11:31:33 +0000 (13:31 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Wed, 16 Sep 2020 16:59:27 +0000 (18:59 +0200)
commitc38a696d168531e3c067451044262ef4d78ef11f
tree333db0a26afb040e3daf5c484bd08c2c42ecbb3a
parentba6e532cda6464759381585452b18f9fd1a19dd3
Remove EntityType from juju watcher and workaround juju bug for retrieving the status

- The juju watcher was doing an unnecessary translation with the entity types. The entity already provides an attribute .entity_type
- Juju has a bug in version 2.8.2 that returns a wrong status. Therefore, charms were getting stuck in waiting for ever.
Change-Id: I44709190acc41601e8a67f4c52074fda00c3d495
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/juju_watcher.py
n2vc/libjuju.py
n2vc/n2vc_conn.py
n2vc/tests/unit/test_juju_watcher.py
n2vc/tests/unit/test_utils.py
n2vc/tests/unit/utils.py
n2vc/utils.py