Skip to content

Commit

Permalink
#1877 show all instances
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 27, 2024
1 parent 4ffe471 commit 52bca8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/rultor/agents/aws/StartsInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ private Instance run(final String talk) {
);
while (true) {
final DescribeInstanceStatusResult res = this.api.aws().describeInstanceStatus(
new DescribeInstanceStatusRequest().withInstanceIds(iid)
new DescribeInstanceStatusRequest()
.withIncludeAllInstances(true)
.withInstanceIds(iid)
);
final InstanceState state = res.getInstanceStatuses().get(0).getInstanceState();
Logger.info(this, "AWS instance %s state: %s", state.getName());
Expand Down

0 comments on commit 52bca8d

Please sign in to comment.