Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed JSON module usage

  • Loading branch information...
commit 0f267ac8031a77a5330a10240985e05fb0e752a6 1 parent 8cba8f8
sshAdm.in authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 snapback.pl
View
4 snapback.pl
@@ -122,8 +122,8 @@
if ($debug) {
print "Response: " .$ec2DataResponse."\n";
}
-my $instanceDataRef=JSON->decode_json($ec2DataResponse);
-my $instanceDataText=JSON->from_json($ec2DataResponse, {utf8 => 1});
+my $instanceDataRef=JSON::XS::decode_json($ec2DataResponse);
+my $instanceDataText=JSON::XS::from_json($ec2DataResponse, {utf8 => 1});
my $instanceId=$instanceDataRef->{"instanceId"};
my $instanceRegion=$instanceDataRef->{"region"};
if ($debug) {
Please sign in to comment.
Something went wrong with that request. Please try again.