projects
/
osm
/
N2VC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
169e445
)
Update database with api_endpoints of VCA on initialization
67/9267/1
v8.0.0rc2
author
David Garcia
<david.garcia@canonical.com>
Wed, 1 Jul 2020 18:25:30 +0000
(20:25 +0200)
committer
garciadav
<david.garcia@canonical.com>
Thu, 2 Jul 2020 07:17:45 +0000
(09:17 +0200)
Change-Id: Id5666d8c93d357632efde93e8e60abafdad56e35
Signed-off-by: David Garcia <david.garcia@canonical.com>
(cherry picked from commit
2cf8b2e0cd32ab2e8f3913ae9c5e156710465240
)
n2vc/libjuju.py
patch
|
blob
|
history
diff --git
a/n2vc/libjuju.py
b/n2vc/libjuju.py
index
daedc3b
..
be16e2a
100644
(file)
--- a/
n2vc/libjuju.py
+++ b/
n2vc/libjuju.py
@@
-70,7
+70,10
@@
class Libjuju:
self.log = log or logging.getLogger("Libjuju")
self.db = db
- self.endpoints = self._get_api_endpoints_db() or [endpoint]
+ db_endpoints = self._get_api_endpoints_db()
+ self.endpoints = db_endpoints or [endpoint]
+ if db_endpoints is None:
+ self._update_api_endpoints_db(self.endpoints)
self.api_proxy = api_proxy
self.username = username
self.password = password