Skip to content

Commit

Permalink
better output from update sensu script
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jul 17, 2016
1 parent f530c74 commit fab7983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sensu/lab11_devices_to_sensu_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def sanitize (s):
for client in clients:
name = client['name']
if name in devices:
print(devices[name])
print('Setting {: <35} to {}'.format(devices[name]['check']['source'], devices[name]['check']['output']))

if not args.dry_run:
amqp_chan.basic_publish(exchange='results', body=json.dumps(devices[name]), routing_key='')

0 comments on commit fab7983

Please sign in to comment.