From e3cb4163a96e8b6b353e6d83999287d71eda3820 Mon Sep 17 00:00:00 2001 From: Petetin Ludovic Date: Tue, 2 Oct 2012 15:12:33 +0200 Subject: [PATCH] Fix issue https://github.com/ansible/ansible/issues/1194 --- nagios | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nagios b/nagios index 97ad97a56b9..5bf8dc09f99 100755 --- a/nagios +++ b/nagios @@ -118,7 +118,7 @@ def which_cmdfile(): if os.path.exists(path): for line in open(path): if line.startswith('command_file'): - return line.partition('=')[2].strip() + return line.split('=')[1].strip() return None