Fix bug 1263 02/9902/1
authorDavid Garcia <david.garcia@canonical.com>
Thu, 22 Oct 2020 08:50:56 +0000 (10:50 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Thu, 22 Oct 2020 08:56:24 +0000 (10:56 +0200)
commita4f57d6260e6520aa6a89e86f9d1b2ca5e0a3a08
treeade0629b5759e1f62cff3db58a8a42f596e47f85
parent168bb198ea5c86aaa2cd8d0e20c634ac896e385f
Fix bug 1263

Update database endpoints when a new VCA_HOST_IP is provided

Before, we were not considering the that the VCA_HOST_IP could be
updated, in that case, the old ips stored in the database should be
replace by the new one. Of course, this won't do any model migration
from the previous VCA to the new one. It will only start pointing to
the new VCA provided.

Change-Id: I5e259f773f90e4f440d87c4b6342cd82425c0e0c
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/libjuju.py
n2vc/tests/unit/test_libjuju.py
n2vc/tests/unit/test_n2vc_juju_conn.py