Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Feb 9, 2024
1 parent 5d1ae5d commit e1e3c0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func ReadFromClientConfig(ctx client.Context) (client.Context, error) {
// ReadDefaultValuesFromDefaultClientConfig reads default values from default client.toml file and updates them in client.Context
// The client.toml is then discarded.
func ReadDefaultValuesFromDefaultClientConfig(ctx client.Context, customClientTemplate string, customConfig interface{}) (client.Context, error) {
prevHomeDir := ctx.HomeDir
dir, err := os.MkdirTemp("", "simapp")
if err != nil {
return ctx, fmt.Errorf("couldn't create temp dir: %w", err)
Expand All @@ -56,7 +57,7 @@ func ReadDefaultValuesFromDefaultClientConfig(ctx client.Context, customClientTe
return ctx, fmt.Errorf("couldn't create client config: %w", err)
}

ctx.HomeDir = ""
ctx.HomeDir = prevHomeDir
return ctx, nil
}

Expand Down

0 comments on commit e1e3c0e

Please sign in to comment.