From dad654e13d0e3c540ce3154a5556c9b720145722 Mon Sep 17 00:00:00 2001 From: Sergey Kiselev Date: Tue, 7 Aug 2018 15:09:02 +0500 Subject: [PATCH] Fix 'Argument "args" isn't numeric in numeric eq (==)' error --- yamd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamd b/yamd index 426cb4e..f3716c3 100755 --- a/yamd +++ b/yamd @@ -227,7 +227,7 @@ our $task = undef; { my ($filename, $path, $suffix) = fileparse($task_file); - if ($path =~ 'ansible' && $filename == 'args') { + if ($path =~ 'ansible' && $filename eq 'args') { # Calling from Ansible with args in the JSON-file open(my $fh, "<", $task_file); $task = decode_json(<$fh>);