Skip to content

Commit

Permalink
fix: allow to override api uri (#5795)
Browse files Browse the repository at this point in the history
* fix: allow to override API uri

* fix: golang ci fixes
  • Loading branch information
exu authored Sep 3, 2024
1 parent 864daf8 commit 7d8758f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/kubectl-testkube/commands/context/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewSetContextCmd() *cobra.Command {
var err error
cfg, err = common.PopulateOrgAndEnvNames(cfg, opts.Master.OrgId, opts.Master.EnvId, opts.Master.URIs.Api)
if err != nil {
ui.Failf("Error populating org and env names: %s", err)
ui.Errf("Error populating org and env names: %s", err)
}
} else {
ui.Warn("No API key provided, you need to login to Testkube Cloud")
Expand All @@ -76,10 +76,9 @@ func NewSetContextCmd() *cobra.Command {
common.UiCloudContextValidationError(err)
}

ui.Success("Your config was updated with new values")
ui.NL()
common.UiPrintContext(cfg)

ui.NL()
ui.Success("Your config was updated with new values")
},
}

Expand Down

0 comments on commit 7d8758f

Please sign in to comment.