projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug 996. Error status when cluster is not ready
[osm/N2VC.git]
/
n2vc
/
k8s_helm_conn.py
diff --git
a/n2vc/k8s_helm_conn.py
b/n2vc/k8s_helm_conn.py
index
f7ff853
..
e57c42f
100644
(file)
--- a/
n2vc/k8s_helm_conn.py
+++ b/
n2vc/k8s_helm_conn.py
@@
-1105,7
+1105,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,