Skip to content

Commit

Permalink
Merge pull request #62 from jmpsec/flags-env-hostname
Browse files Browse the repository at this point in the history
Refresh flags on environment updates
  • Loading branch information
javuto authored Apr 11, 2020
2 parents 1ff9a9f + e2d90ec commit c946c6e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cli/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ func updateEnvironment(c *cli.Context) error {
if err := envs.Update(env); err != nil {
return err
}
// Make sure flags are up to date
flags, err := environments.GenerateFlags(env, "", "")
if err != nil {
return err
}
// Update flags in the newly created environment
if err := envs.UpdateFlags(envName, flags); err != nil {
return err
}
return nil
}

Expand Down

0 comments on commit c946c6e

Please sign in to comment.