Cloudwatch: Remove unused parameters (#45237)

* Remove unused parameters

* Remove unused context

* Make plugin context first parameter
This commit is contained in:
Shirley
2022-02-10 17:15:11 +01:00
committed by GitHub
parent 642f0a250d
commit 89a0c0fc37
6 changed files with 56 additions and 61 deletions

View File

@@ -98,7 +98,7 @@ func (e *cloudWatchExecutor) executeLogAction(ctx context.Context, model *simple
defaultRegion := dsInfo.region
region := model.Get("region").MustString(defaultRegion)
logsClient, err := e.getCWLogsClient(region, pluginCtx)
logsClient, err := e.getCWLogsClient(pluginCtx, region)
if err != nil {
return nil, err
}