If certificate list... is a string, set it as a list

parent bf8fae3d
...@@ -104,7 +104,10 @@ class NetworkcacheClient(object): ...@@ -104,7 +104,10 @@ class NetworkcacheClient(object):
setattr(self, 'shadir_%s' % k, v) setattr(self, 'shadir_%s' % k, v)
self.signature_private_key_file = signature_private_key_file self.signature_private_key_file = signature_private_key_file
self.signature_certificate_list = signature_certificate_list if type(signature_certificate_list) is str:
self.signature_certificate_list = [signature_certificate_list]
else:
self.signature_certificate_list = signature_certificate_list
self.shacache_key_file = shacache_key_file self.shacache_key_file = shacache_key_file
self.shacache_cert_file = shacache_cert_file self.shacache_cert_file = shacache_cert_file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment