Skip to content

Commit 84e769d

Browse files
committed
Wait two minutes
Othewise we panic because the NIC is still using the subnet
1 parent c1b6b28 commit 84e769d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gitpod-network-check/cmd/common.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ func cleanup(ctx context.Context, svc *ec2.Client, iamsvc *iam.Client) {
6464
}
6565

6666
if len(InstanceIds) > 0 {
67-
log.Info("Cleaning up: Waiting for 1 minute so network interfaces are deleted")
68-
time.Sleep(time.Minute)
67+
log.Info("Cleaning up: Waiting for 2 minutes so network interfaces are deleted")
68+
time.Sleep(2 * time.Minute)
6969

7070
_, err := svc.TerminateInstances(ctx, &ec2.TerminateInstancesInput{
7171
InstanceIds: InstanceIds,
@@ -99,6 +99,9 @@ func cleanup(ctx context.Context, svc *ec2.Client, iamsvc *iam.Client) {
9999
}
100100
}
101101
}
102+
if len(Roles) == 0 {
103+
log.Info("No roles found.")
104+
}
102105
}
103106

104107
if len(Roles) > 0 {

0 commit comments

Comments
 (0)