Remove EntityType from juju watcher and workaround juju bug for retrieving the status 31/9731/1
authorDavid Garcia <david.garcia@canonical.com>
Wed, 16 Sep 2020 11:31:33 +0000 (13:31 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Tue, 22 Sep 2020 10:19:19 +0000 (12:19 +0200)
commitaded5838d4c4b23e4355c091913520184b90dbb5
tree5906e06c07e3953b6aa9ffcb9657b570d91d33ec
parent3c063d193a201b5e7653115671739f1e64677e9c
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