projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix flake8
[osm/N2VC.git]
/
n2vc
/
n2vc_conn.py
diff --git
a/n2vc/n2vc_conn.py
b/n2vc/n2vc_conn.py
index
d3aaf35
..
8f6c3ef
100644
(file)
--- a/
n2vc/n2vc_conn.py
+++ b/
n2vc/n2vc_conn.py
@@
-64,7
+64,7
@@
class N2VCConnector(abc.ABC, Loggable):
url: str,
username: str,
vca_config: dict,
url: str,
username: str,
vca_config: dict,
- on_update_db
=
None
+ on_update_db
=
None
):
"""Initialize N2VC abstract connector. It defines de API for VCA connectors
):
"""Initialize N2VC abstract connector. It defines de API for VCA connectors
@@
-440,6
+440,8
@@
def juju_status_2_osm_status(type: str, status: str) -> N2VCDeploymentStatus:
if type == 'application' or type == 'unit':
if status in ['waiting', 'maintenance']:
return N2VCDeploymentStatus.RUNNING
if type == 'application' or type == 'unit':
if status in ['waiting', 'maintenance']:
return N2VCDeploymentStatus.RUNNING
+ if status in ['error']:
+ return N2VCDeploymentStatus.FAILED
elif status in ['active']:
return N2VCDeploymentStatus.COMPLETED
elif status in ['blocked']:
elif status in ['active']:
return N2VCDeploymentStatus.COMPLETED
elif status in ['blocked']: