Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! prompt global credentials according to mo…
Browse files Browse the repository at this point in the history
…dules
  • Loading branch information
davidcheung committed Jun 17, 2020
1 parent d39cbcc commit 6f1750d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion internal/context/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func Init(outDir string) *projectconfig.ZeroProjectConfig {
projectCredentials := globalconfig.GetProjectCredentials(projectConfig.Name)
credentialPrompts := getCredentialPrompts(projectCredentials, moduleConfigs)
projectCredentials = promptCredentialsAndFillProjectCreds(credentialPrompts, projectCredentials)

globalconfig.Save(projectCredentials)
projectParameters := promptAllModules(moduleConfigs)

// Map parameter values back to specific modules
Expand Down
2 changes: 0 additions & 2 deletions internal/context/prompts.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ func promptCredentialsAndFillProjectCreds(credentialPrompts map[string][]PromptH
// current just marashing to yaml, then unmarshaling into the base struct
yamlContent, _ := yaml.Marshal(promptsValues)
yaml.Unmarshal(yamlContent, &credentials)

globalconfig.Save(credentials)
return credentials
}

Expand Down

0 comments on commit 6f1750d

Please sign in to comment.