Skip to content

Commit 07c17b2

Browse files
committed
remove optional overwrite parameter
1 parent 4a30b24 commit 07c17b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class SshKeyPair {
2828
})
2929
}
3030

31-
public static async getSshKeyPair(keyPath: string, lifetime: number, overwrite: boolean = true) {
31+
public static async getSshKeyPair(keyPath: string, lifetime: number) {
3232
await SshKeyPair.generateSshKeyPair(keyPath)
3333
return new SshKeyPair(keyPath, lifetime)
3434
}

packages/core/src/test/awsService/ec2/model.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ describe('Ec2ConnectClient', function () {
139139
instanceId: 'test-id',
140140
region: 'test-region',
141141
}
142-
const mockKeys = await SshKeyPair.getSshKeyPair('fakeDir', 30000, false)
142+
const mockKeys = await SshKeyPair.getSshKeyPair('fakeDir', 30000)
143143
await client.sendSshKeyToInstance(testSelection, mockKeys, 'test-user')
144144
sinon.assert.calledWith(sendCommandStub, testSelection.instanceId, 'AWS-RunShellScript')
145145
sinon.restore()

0 commit comments

Comments
 (0)