Skip to content

Commit 7152308

Browse files
committed
change properties name
1 parent cb7f5c4 commit 7152308

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/index.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@
2020
$part1 = explode("'instance-id': '", $decode);
2121
$part2 = explode("', 'local-ipv4':", $part1[1]);
2222
$instaceId = explode("',", $part2[0])[0];
23-
$dataArray["instance"] = $instaceId;
23+
$dataArray["Instance"] = $instaceId;
2424

2525
$part1 = explode("'public-hostname': '", $decode);
2626
$part2 = explode("', 'vpc-ipv4-cidr-blocks'", $part1[1]);
2727
$hostName = $part2[0];
28-
$dataArray["hostname"] = $hostName;
28+
$dataArray["Hostname"] = $hostName;
2929

3030
$part1 = explode("'public-ipv4s': '", $decode);
3131
$part2 = explode("', 'interface-id'", $part1[1]);
3232
$publicIPV4 = $part2[0];
33-
$dataArray["public_ipv4"] = $publicIPV4;
33+
$dataArray["PublicIpv4"] = $publicIPV4;
3434

3535
$part1 = explode("'region'", $decode);
3636
$part2 = explode("', 'availability-zone'", $part1[1]);
3737
$region = explode("'", $part2[0])[1];
38-
$dataArray["region"] = $region;
38+
$dataArray["Region"] = $region;
3939
}
4040

4141
$fp = fopen($filename, "r");

0 commit comments

Comments
 (0)