Skip to content

Commit

Permalink
Fix gmr#41 for python 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne Walker committed Aug 13, 2015
1 parent 9edc064 commit aa7dce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consulate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def kv_backup(consul, args):
'ascii'))
for k,f,v in records]
else:
records = [(k, f, base64.b64encode(v)) for k,f,v in records]
records = [(k, f, base64.b64encode(v) if v else v) for k,f,v in records]
try:
handle.write(json.dumps(records) + '\n')
except exceptions.ConnectionError:
Expand Down

0 comments on commit aa7dce4

Please sign in to comment.