File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
packages/core/src/awsService/ec2 Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import os from 'os'
66import { fs , globals } from '../../shared'
77import { ToolkitError } from '../../shared/errors'
88import { tryRun } from '../../shared/utilities/pathFind'
9- import { Timeout , waitUntil } from '../../shared/utilities/timeoutUtils'
9+ import { Timeout } from '../../shared/utilities/timeoutUtils'
1010import { findAsync } from '../../shared/utilities/collectionUtils'
1111import { 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 }
You can’t perform that action at this time.
0 commit comments