Skip to content

Commit 140f20d

Browse files
committed
fixed aws run --wait option
1 parent 8ba3d46 commit 140f20d

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

aws

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,25 +1349,21 @@ if (!$cmd_data)
13491349
for (;;)
13501350
{
13511351
my(@instanceId, @instanceState, @dnsName, @groupId);
1352+
my($groupId) = $result =~ /<groupId>(.*?)<\/groupId>/;
13521353

1353-
while ($result =~ /(<item(?:<item(?:<item.*?<\/item>|.)*?<\/item>|.)*?<\/item>)/sg)
1354+
while ($result =~ /(<instancesSet.*?<\/instancesSet>)/sg)
13541355
{
13551356
my($result) = ($1);
1356-
my($groupId) = $result =~ /<groupId>(.*?)<\/groupId>/;
1357-
while ($result =~ /(<instancesSet.*?<\/instancesSet>)/sg)
1357+
while ($result =~ /(<item(?:<item.*?<\/item>|.)*?<\/item>)/sg)
13581358
{
13591359
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;
13711367
}
13721368
}
13731369

0 commit comments

Comments
 (0)