Skip to content

Instantly share code, notes, and snippets.

@BlackDex
Created February 17, 2017 08:18
Show Gist options
  • Save BlackDex/e3a7614356c2509a65f6d77162c5186f to your computer and use it in GitHub Desktop.
Save BlackDex/e3a7614356c2509a65f6d77162c5186f to your computer and use it in GitHub Desktop.
--- common.py.org 2017-02-16 14:22:08.373192652 +0000
+++ common.py 2017-02-16 14:22:25.066235624 +0000
@@ -171,7 +171,7 @@
elif 'command' in extra:
cmd_args.extend(('-c', extra['command']))
else:
- return False
+ cmd_args.extend(('-c', extra))
check_command = _make_check_command(cmd_args)
cmd = '%s!%s' % (check_command, '!'.join([str(x) for x in args]))
service.set_attribute('check_command', cmd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment