Skip to content

Commit acd3fb3

Browse files
committed
remove waitUntil
1 parent edd559c commit acd3fb3

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/core/src/awsService/ec2/sshKeyPair.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import os from 'os'
66
import { fs, globals } from '../../shared'
77
import { ToolkitError } from '../../shared/errors'
88
import { tryRun } from '../../shared/utilities/pathFind'
9-
import { Timeout, waitUntil } from '../../shared/utilities/timeoutUtils'
9+
import { Timeout } from '../../shared/utilities/timeoutUtils'
1010
import { findAsync } from '../../shared/utilities/collectionUtils'
1111
import { RunParameterContext } from '../../shared/utilities/processUtils'
1212

@@ -38,15 +38,6 @@ export class SshKeyPair {
3838
throw new ToolkitError('ec2: Unable to generate ssh key pair with either ed25519 or rsa')
3939
}
4040

41-
await waitUntil(
42-
async () => {
43-
return await fs.exists(keyPath)
44-
},
45-
{
46-
timeout: 25000,
47-
}
48-
)
49-
5041
if (!(await fs.exists(keyPath))) {
5142
throw new ToolkitError(`ec2: Failed to generate keys, resulting key not found at ${keyPath}`)
5243
}

0 commit comments

Comments
 (0)