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:
bc355a1
)
Fix bug 996. Error status when cluster is not ready
21/8521/2
author
quilesj
<e.nvi001.tid@telefonica.com>
Thu, 23 Jan 2020 16:30:04 +0000
(16:30 +0000)
committer
israelad
<adam.israel@canonical.com>
Thu, 30 Jan 2020 16:39:52 +0000
(17:39 +0100)
Change-Id: I194932ac67aa9a04a1fd4a7e4789103b13477e6e
Signed-off-by: quilesj <e.nvi001.tid@telefonica.com>
n2vc/k8s_helm_conn.py
patch
|
blob
|
history
diff --git
a/n2vc/k8s_helm_conn.py
b/n2vc/k8s_helm_conn.py
index
f49159e
..
417604a
100644
(file)
--- a/
n2vc/k8s_helm_conn.py
+++ b/
n2vc/k8s_helm_conn.py
@@
-1114,7
+1114,10
@@
class K8sHelmConnector(K8sConnector):
msg = 'Exception executing command: {} -> {}'.format(command, e)
if show_error_log:
self.error(msg)
- return '', -1
+ if raise_exception_on_error:
+ raise e
+ else:
+ return '', -1
def _remote_exec(
self,