@@ -52,7 +52,7 @@ export class SSMWrapper extends ClientWrapper<SSMClient> {
5252 }
5353
5454 public async describeInstance ( target : string ) : Promise < InstanceInformation > {
55- const response2 = this . makePaginatedRequest (
55+ const response = this . makePaginatedRequest (
5656 DescribeInstanceInformationCommand ,
5757 {
5858 InstanceInformationFilterList : [
@@ -64,7 +64,7 @@ export class SSMWrapper extends ClientWrapper<SSMClient> {
6464 } as DescribeInstanceInformationCommandInput ,
6565 'InstanceIds'
6666 )
67- const resolvedResponse = await response2 . flatten ( ) . flatten ( ) . promise ( )
67+ const resolvedResponse = await response . flatten ( ) . flatten ( ) . promise ( )
6868 return resolvedResponse [ 0 ] !
6969 }
7070
@@ -85,7 +85,7 @@ export class SSMWrapper extends ClientWrapper<SSMClient> {
8585 } )
8686 }
8787
88- private async waitUntilCommandExecuted ( commandId : string , target : string ) {
88+ private async waitForCommand ( commandId : string , target : string ) {
8989 const result = await waitUntilCommandExecuted (
9090 { client : await this . getClient ( ) , maxWaitTime : 30 } ,
9191 { CommandId : commandId , InstanceId : target }
@@ -102,7 +102,7 @@ export class SSMWrapper extends ClientWrapper<SSMClient> {
102102 ) : Promise < SendCommandCommandOutput > {
103103 const response = await this . sendCommand ( target , documentName , parameters )
104104 try {
105- await this . waitUntilCommandExecuted ( response . Command ! . CommandId ! , target )
105+ await this . waitForCommand ( response . Command ! . CommandId ! , target )
106106 return response
107107 } catch ( err ) {
108108 throw new ToolkitError ( `Failed in sending command to target ${ target } ` , { cause : err as Error } )
0 commit comments