Skip to content

Commit

Permalink
taskrc parsing changes h/t @pbeckingham
Browse files Browse the repository at this point in the history
  • Loading branch information
jrabbit committed May 30, 2015
1 parent 2372248 commit f39dd14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taskc/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def from_taskrc(self, f="~/.taskrc"):
os.path.expanduser(f)).readlines() if '=' in x and x[0] != "#"])
self.client_cert = conf['taskd.certificate']
self.client_key = conf['taskd.key']
self.server = conf['taskd.server'].split(":")[0]
self.port = int(conf['taskd.server'].split(":")[1])
self.server = conf['taskd.server'].split(":")[-2]
self.port = int(conf['taskd.server'].split(":")[-1])
self.cacert_file = conf['taskd.ca'] if 'taskd.ca' in conf else None
self.group, self.username, self.uuid = conf['taskd.credentials'].split("/")
return self
Expand Down

0 comments on commit f39dd14

Please sign in to comment.