From 17423c926836e4df5206ac9d9246fff817fc8006 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 --- library/nagios | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/nagios b/library/nagios index 97ad97a56b..5bf8dc09f9 100755 --- a/library/nagios +++ b/library/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