Merge "Revert "Remove vendored libjuju""
authorisraelad <adam.israel@canonical.com>
Thu, 21 Nov 2019 15:46:44 +0000 (16:46 +0100)
committerGerrit Code Review <root@osm.etsi.org>
Thu, 21 Nov 2019 15:46:44 +0000 (16:46 +0100)
n2vc/exceptions.py
n2vc/vnf.py

index fd4a3ce..a63d6f9 100644 (file)
@@ -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."""
+
index ef7b967..3bf51fa 100644 (file)
@@ -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