Skip to content

Commit

Permalink
fix: typo and empty secrets edit
Browse files Browse the repository at this point in the history
  • Loading branch information
23doors committed Jun 8, 2022
1 parent 3348a67 commit 75769b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/actions/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (m *SecretsManager) View(ctx context.Context) error {
return err
}

m.log.Successf("Secrets loaded!!\n")
m.log.Successf("Secrets loaded!\n")
m.log.Println(out)

return nil
Expand Down Expand Up @@ -132,6 +132,10 @@ func (m *SecretsManager) getSecretsValues(ctx context.Context) (vals map[string]
return nil, err
}

if vals == nil {
vals = make(map[string]string)
}

for _, plug := range m.cfg.LoadedPlugins() {
for k := range plug.Secrets {
if _, ok := vals[k]; !ok {
Expand Down

0 comments on commit 75769b5

Please sign in to comment.