Accept None for parameter ca_cert at vnf.py: N2VC.__init__ 45/8145/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 11 Nov 2019 17:45:17 +0000 (17:45 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 11 Nov 2019 17:48:00 +0000 (17:48 +0000)
To be backward compatible with old LCM versions

Change-Id: I05c90d329051f948a569c17e0864a4c2123c28b0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
n2vc/vnf.py

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