File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 20
20
$ part1 = explode ("'instance-id': ' " , $ decode );
21
21
$ part2 = explode ("', 'local-ipv4': " , $ part1 [1 ]);
22
22
$ instaceId = explode ("', " , $ part2 [0 ])[0 ];
23
- $ dataArray ["instance " ] = $ instaceId ;
23
+ $ dataArray ["Instance " ] = $ instaceId ;
24
24
25
25
$ part1 = explode ("'public-hostname': ' " , $ decode );
26
26
$ part2 = explode ("', 'vpc-ipv4-cidr-blocks' " , $ part1 [1 ]);
27
27
$ hostName = $ part2 [0 ];
28
- $ dataArray ["hostname " ] = $ hostName ;
28
+ $ dataArray ["Hostname " ] = $ hostName ;
29
29
30
30
$ part1 = explode ("'public-ipv4s': ' " , $ decode );
31
31
$ part2 = explode ("', 'interface-id' " , $ part1 [1 ]);
32
32
$ publicIPV4 = $ part2 [0 ];
33
- $ dataArray ["public_ipv4 " ] = $ publicIPV4 ;
33
+ $ dataArray ["PublicIpv4 " ] = $ publicIPV4 ;
34
34
35
35
$ part1 = explode ("'region' " , $ decode );
36
36
$ part2 = explode ("', 'availability-zone' " , $ part1 [1 ]);
37
37
$ region = explode ("' " , $ part2 [0 ])[1 ];
38
- $ dataArray ["region " ] = $ region ;
38
+ $ dataArray ["Region " ] = $ region ;
39
39
}
40
40
41
41
$ fp = fopen ($ filename , "r " );
You can’t perform that action at this time.
0 commit comments