Skip to content

Commit cdcd319

Browse files
return warning if there were no parameters in Parameter Store
1 parent bf9c577 commit cdcd319

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aws/aws_param_store.go

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ func LoadConfigFromParameterStore( //nolint:nonamedreturns // false positive, us
5858
}
5959
}
6060

61+
if len(params) == 0 {
62+
return global.NewWarning("global: no parameters in Parameter Store with prefix \"%s\"", options.ParamPrefix)
63+
}
64+
6165
paramTree := buildParamTree(params)
6266

6367
errors := paramTree.Write(reflectedConfig)

0 commit comments

Comments
 (0)