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:
f997297
)
Fix bug 1049: Raise exception if model does not exist when destroying a model
64/8864/1
author
David Garcia
<david.garcia@canonical.com>
Mon, 6 Apr 2020 10:55:23 +0000
(12:55 +0200)
committer
David Garcia
<david.garcia@canonical.com>
Thu, 7 May 2020 09:03:32 +0000
(11:03 +0200)
Change-Id: I7bc64f296d6cff695511be77a5445241a1175d8a
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/n2vc_juju_conn.py
patch
|
blob
|
history
diff --git
a/n2vc/n2vc_juju_conn.py
b/n2vc/n2vc_juju_conn.py
index
dbd904c
..
0485e69
100644
(file)
--- a/
n2vc/n2vc_juju_conn.py
+++ b/
n2vc/n2vc_juju_conn.py
@@
-1288,6
+1288,12
@@
class N2VCJujuConnector(N2VCConnector):
total_timeout = 3600
model = await self._juju_get_model(model_name=model_name)
+
+ if not model:
+ raise N2VCException(
+ message="Model {} does not exist".format(model_name)
+ )
+
uuid = model.info.uuid
# destroy applications