From f5b4b20b4ea114432a2096047262e874155b5c41 Mon Sep 17 00:00:00 2001 From: tierno Date: Mon, 11 Nov 2019 17:45:17 +0000 Subject: [PATCH] Accept None for parameter ca_cert at vnf.py: N2VC.__init__ To be backward compatible with old LCM versions Change-Id: I05c90d329051f948a569c17e0864a4c2123c28b0 Signed-off-by: tierno --- n2vc/vnf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.25.1