Skip to content

Commit 6adbb7d

Browse files
committed
remove polling function
1 parent d154a23 commit 6adbb7d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/ec2/model.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,6 @@ export class Ec2ConnectionManager {
9494
throw new ToolkitError(generalErrorMessage + message, errorInfo)
9595
}
9696

97-
private async pollForPermissions(roleArn: string): Promise<void> {
98-
const timeout = new Timeout(-1)
99-
await showMessageWithCancel(`Adding inline policy to IAM role ${roleArn}`, timeout)
100-
while (!timeout.completed) {
101-
const permissionsAdded = await this.hasProperPermissions(roleArn)
102-
if (permissionsAdded) {
103-
break
104-
}
105-
await sleep(1000)
106-
}
107-
timeout.cancel()
108-
}
109-
11097
private async checkForInstanceStatusError(selection: Ec2Selection): Promise<void> {
11198
const isInstanceRunning = await this.isInstanceRunning(selection.instanceId)
11299

0 commit comments

Comments
 (0)