Browse Source

Fix 'Argument "args" isn't numeric in numeric eq (==)' error

master
Sergey Kiselev 6 years ago
parent
commit
dad654e13d
  1. 2
      yamd

2
yamd

@ -227,7 +227,7 @@ our $task = undef;
{ {
my ($filename, $path, $suffix) = fileparse($task_file); 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 # Calling from Ansible with args in the JSON-file
open(my $fh, "<", $task_file); open(my $fh, "<", $task_file);
$task = decode_json(<$fh>); $task = decode_json(<$fh>);