From: israelad Date: Thu, 21 Nov 2019 15:40:21 +0000 (+0100) Subject: Merge "Remove vendored libjuju" X-Git-Tag: v7.0.0rc1~20 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=commitdiff_plain;h=205e85f2235b4b173d57ceb774b6baddd46fe6d1;hp=9d18c22a0dc9e295adda50601fc5e2f45d2c9b8a Merge "Remove vendored libjuju" --- diff --git a/n2vc/exceptions.py b/n2vc/exceptions.py index fd4a3ce..a63d6f9 100644 --- a/n2vc/exceptions.py +++ b/n2vc/exceptions.py @@ -39,5 +39,11 @@ class NoRouteToHost(Exception): class AuthenticationFailed(Exception): """The authentication for the specified user failed.""" + class InvalidCACertificate(Exception): - """The CA Certificate is not valid.""" \ No newline at end of file + """The CA Certificate is not valid.""" + + +class NotImplemented(Exception): + """The method is not implemented.""" + diff --git a/n2vc/vnf.py b/n2vc/vnf.py index ef7b967..3bf51fa 100644 --- a/n2vc/vnf.py +++ b/n2vc/vnf.py @@ -266,8 +266,9 @@ class N2VC: return cacert - self.ca_cert = base64_to_cacert(ca_cert) - # self.ca_cert = None + self.ca_cert = None + if ca_cert: + self.ca_cert = base64_to_cacert(ca_cert) # Quiet websocket traffic