Skip to content

Commit ca6c65f

Browse files
committed
attempt to import child process
1 parent 07c17b2 commit ca6c65f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ToolkitError } from '../../shared/errors'
88
import { tryRun } from '../../shared/utilities/pathFind'
99
import { Timeout } from '../../shared/utilities/timeoutUtils'
1010
import { findAsync } from '../../shared/utilities/collectionUtils'
11+
import { ChildProcess } from '../../shared/utilities/childProcess'
1112

1213
type sshKeyType = 'rsa' | 'ed25519'
1314

@@ -46,7 +47,7 @@ export class SshKeyPair {
4647
* @param keyType type of key to generate.
4748
*/
4849
public static async tryKeyGen(keyPath: string, keyType: sshKeyType): Promise<boolean> {
49-
const overrideKeys = async (proc: any, _t: string) => {
50+
const overrideKeys = async (proc: ChildProcess, _t: string) => {
5051
await proc.send('yes')
5152
}
5253
return !(await tryRun(

0 commit comments

Comments
 (0)