Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Laura Lin <[email protected]>
  • Loading branch information
lauralindy authored Nov 7, 2023
1 parent 879ca56 commit 8b09838
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flyteplugins/go/tasks/plugins/webapi/athena/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,19 +178,19 @@ func (p Plugin) Status(ctx context.Context, tCtx webapi.StatusContext) (phase co

func createTaskInfo(queryID string, cfg awsSdk.Config) *core.TaskInfo {
timeNow := time.Now()
var consoleUrl string
var consoleURL string
if strings.Contains(cfg.Region, "gov") {
consoleUrl = "console.amazonaws-us-gov.com"
consoleURL = "console.amazonaws-us-gov.com"
} else {
consoleUrl = "console.aws.amazon.com"
consoleURL = "console.aws.amazon.com"
}
return &core.TaskInfo{
OccurredAt: &timeNow,
Logs: []*idlCore.TaskLog{
{
Uri: fmt.Sprintf("https://%v.%v/athena/home?force&region=%v#query/history/%v",
cfg.Region,
consoleUrl,
consoleURL,
cfg.Region,
queryID),
Name: "Athena Query Console",
Expand Down

0 comments on commit 8b09838

Please sign in to comment.