projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wait for cloud-init to finish before provisioning
[osm/N2VC.git]
/
n2vc
/
utils.py
diff --git
a/n2vc/utils.py
b/n2vc/utils.py
index
f0146a0
..
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))