From: tierno Date: Mon, 11 Nov 2019 17:45:17 +0000 (+0000) Subject: Accept None for parameter ca_cert at vnf.py: N2VC.__init__ X-Git-Tag: v7.0.0rc1~23 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F8145%2F1;p=osm%2FN2VC.git 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 --- 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