Fix up to save -c config values for non-url case (#1855)

Previously, we were only saving config values specified on the command line (via --config/-c) for the URL case. This change fixes things to save these config values for the non-URL path.
This commit is contained in:
Justin Van Patten 2018-08-31 16:38:39 -07:00 committed by GitHub
parent dea68b8b37
commit 9cb163f26b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,18 @@ func newUpCmd() *cobra.Command {
return err
}
// Save any config values passed via flags.
if len(configArray) > 0 {
commandLineConfig, err := parseConfig(configArray)
if err != nil {
return err
}
if err = saveConfig(s.Name().StackName(), commandLineConfig); err != nil {
return errors.Wrap(err, "saving config")
}
}
proj, root, err := readProject()
if err != nil {
return err