From 62c1fa3c05863ffb2045fc68abbec7072785a386 Mon Sep 17 00:00:00 2001 From: Ivan Vanderbyl Date: Fri, 30 Aug 2013 12:43:27 +1000 Subject: [PATCH] Fixed unfollow logic --- monitoring/logentries | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitoring/logentries b/monitoring/logentries index 480ab9954df..08a2d18264c 100644 --- a/monitoring/logentries +++ b/monitoring/logentries @@ -67,7 +67,7 @@ def follow_log(module, le_path, logs): rc, out, err = module.run_command([le_path, 'follow', log]) if not query_log_status(module, le_path, log): - module.fail_json(msg="failed to follow '%s': %s" % (log, out.strip())) + module.fail_json(msg="failed to follow '%s': %s" % (log, err.strip())) followed_count += 1 @@ -89,10 +89,10 @@ def unfollow_log(module, le_path, logs): if module.check_mode: module.exit_json(changed=True) - rc, out, err = module.run_command([le_path, 'unfollow', log]) + rc, out, err = module.run_command([le_path, 'rm', log]) if query_log_status(module, le_path, log): - module.fail_json(msg="failed to remove '%s': %s" % (log, out.strip())) + module.fail_json(msg="failed to remove '%s': %s" % (log, err.strip())) removed_count += 1