issue #477: get rid of perl JSON module requirement.
parent
7d1b0e0807
commit
abb0319bbb
@ -1,15 +1,10 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
binmode STDOUT, ":utf8";
|
|
||||||
use utf8;
|
|
||||||
|
|
||||||
use JSON;
|
|
||||||
|
|
||||||
my $json_args = <<'END_MESSAGE';
|
my $json_args = <<'END_MESSAGE';
|
||||||
<<INCLUDE_ANSIBLE_MODULE_JSON_ARGS>>
|
<<INCLUDE_ANSIBLE_MODULE_JSON_ARGS>>
|
||||||
END_MESSAGE
|
END_MESSAGE
|
||||||
|
|
||||||
print encode_json({
|
print '{';
|
||||||
message => "I am a perl script! Here is my input.",
|
print ' "message": "I am a perl script! Here is my input.",' . "\n";
|
||||||
input => [decode_json($json_args)]
|
print ' "input": ' . $json_args;
|
||||||
});
|
print '}' . "\n";
|
||||||
|
Loading…
Reference in New Issue