Skip to content

Commit

Permalink
return warning if there were no parameters in Parameter Store
Browse files Browse the repository at this point in the history
  • Loading branch information
leonid-shevtsov committed Jul 11, 2024
1 parent bf9c577 commit cdcd319
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/aws_param_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func LoadConfigFromParameterStore( //nolint:nonamedreturns // false positive, us
}
}

if len(params) == 0 {
return global.NewWarning("global: no parameters in Parameter Store with prefix \"%s\"", options.ParamPrefix)
}

paramTree := buildParamTree(params)

errors := paramTree.Write(reflectedConfig)
Expand Down

0 comments on commit cdcd319

Please sign in to comment.