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 1575
[osm/N2VC.git]
/
n2vc
/
utils.py
diff --git
a/n2vc/utils.py
b/n2vc/utils.py
index
6e0f2c0
..
0dbd71e
100644
(file)
--- a/
n2vc/utils.py
+++ b/
n2vc/utils.py
@@
-33,7
+33,11
@@
def base64_to_cacert(b64string):
try:
cacert = base64.b64decode(b64string).decode("utf-8")
try:
cacert = base64.b64decode(b64string).decode("utf-8")
- cacert = re.sub(r"\\n", r"\n", cacert,)
+ cacert = re.sub(
+ r"\\n",
+ r"\n",
+ cacert,
+ )
except binascii.Error as e:
raise N2VCInvalidCertificate(message="Invalid CA Certificate: {}".format(e))
except binascii.Error as e:
raise N2VCInvalidCertificate(message="Invalid CA Certificate: {}".format(e))
@@
-114,14
+118,6
@@
JujuStatusToOSM = {
},
}
},
}
-DB_DATA = Dict(
- {
- "api_endpoints": Dict(
- {"table": "admin", "filter": {"_id": "juju"}, "key": "api_endpoints"}
- )
- }
-)
-
def obj_to_yaml(obj: object) -> str:
"""
def obj_to_yaml(obj: object) -> str:
"""