Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Emmanuel Jacquier <[email protected]>
  • Loading branch information
pierre-emmanuelJ committed Apr 3, 2024
1 parent c9ed98f commit 686ca7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ func saveConfig(filePath string, newAccounts *account.Config) error {
if acc.DefaultOutputFormat != "" {
accounts[i]["defaultOutputFormat"] = acc.DefaultOutputFormat
}
// TODO(pej): This is a workaround to not propagate Environment 'api' on config reload.
// By default, acc.Environment is set to 'api' to be used for egoscale v2 in the whole codebase.
// We can not tweak it like DefaultTemplate by using the 'api' default const.
// Remove the environment when egoscale v3 will be fully integrated.
if acc.Environment != "" && acc.Environment != "api" {
accounts[i]["environment"] = acc.Environment
}
Expand Down

0 comments on commit 686ca7d

Please sign in to comment.