@@ -1349,25 +1349,21 @@ if (!$cmd_data)
1349
1349
for (;;)
1350
1350
{
1351
1351
my (@instanceId , @instanceState , @dnsName , @groupId );
1352
+ my ($groupId ) = $result =~ / <groupId>(.*?)<\/ groupId>/ ;
1352
1353
1353
- while ($result =~ / (<item(?:<item(?:<item .*?<\/ item>|.)*?< \/ item>|.)*?< \/ item >)/sg )
1354
+ while ($result =~ / (<instancesSet .*?<\/ instancesSet >)/sg )
1354
1355
{
1355
1356
my ($result ) = ($1 );
1356
- my ($groupId ) = $result =~ / <groupId>(.*?)<\/ groupId>/ ;
1357
- while ($result =~ / (<instancesSet.*?<\/ instancesSet>)/sg )
1357
+ while ($result =~ / (<item(?:<item.*?<\/ item>|.)*?<\/ item>)/sg )
1358
1358
{
1359
1359
my ($result ) = ($1 );
1360
- while ($result =~ / (<item(?:<item.*?<\/ item>|.)*?<\/ item>)/sg )
1361
- {
1362
- my ($result ) = ($1 );
1363
- my ($instanceId ) = $result =~ / <instanceId>(.*?)<\/ instanceId>/s ;
1364
- my ($instanceState ) = map {/ <name>(.*?)<\/ name>/s } $result =~ / <instanceState>(.*?)<\/ instanceState>/s ;
1365
- my ($dnsName ) = $result =~ / <dnsName>(.*?)<\/ dnsName>/s ;
1366
- push @instanceId , $instanceId ;
1367
- push @instanceState , $instanceState ;
1368
- push @dnsName , $dnsName ;
1369
- push @groupId , $groupId ;
1370
- }
1360
+ my ($instanceId ) = $result =~ / <instanceId>(.*?)<\/ instanceId>/s ;
1361
+ my ($instanceState ) = map {/ <name>(.*?)<\/ name>/s } $result =~ / <instanceState>(.*?)<\/ instanceState>/s ;
1362
+ my ($dnsName ) = $result =~ / <dnsName>(.*?)<\/ dnsName>/s ;
1363
+ push @instanceId , $instanceId ;
1364
+ push @instanceState , $instanceState ;
1365
+ push @dnsName , $dnsName ;
1366
+ push @groupId , $groupId ;
1371
1367
}
1372
1368
}
1373
1369
0 commit comments