Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Commit

Permalink
Fix flake complaint - I hope
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-M committed Nov 24, 2015
1 parent c971990 commit cae4584
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zmon_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,17 @@ def get_config_data():
del data['password']
with open(fn, mode='w') as fd:
yaml.dump(data, fd, default_flow_style=False,
allow_unicode=True,
encoding='utf-8')
allow_unicode=True,
encoding='utf-8')
else:
clickclick.warning("No configuration file found at [%s]".format(DEFAULT_CONFIG_FILE))
data['url'] = click.prompt("ZMon Base URL (e.g. https://zmon2.local/rest/api/v1)")
data['user'] = click.prompt("ZMon username", default=os.environ['USER'])

with open(fn, mode='w') as fd:
yaml.dump(data, fd, default_flow_style=False,
allow_unicode=True,
encoding='utf-8')
allow_unicode=True,
encoding='utf-8')
except Exception as e:
error(e)

Expand Down

0 comments on commit cae4584

Please sign in to comment.