Commit 182878c8 authored by Marco Mariani's avatar Marco Mariani

behave correctly when key_file or cert_file are not configured

parent e5420582
......@@ -71,8 +71,11 @@ class ClientConfig(object):
else:
setattr(self, 'master_url', master_url)
self.key_file = os.path.expanduser(self.key_file)
self.cert_file = os.path.expanduser(self.cert_file)
if self.key_file:
self.key_file = os.path.expanduser(self.key_file)
if self.cert_file:
self.cert_file = os.path.expanduser(self.cert_file)
def init(config):
"""Initialize Slap instance, connect to server and create
......
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