mirror of
https://github.com/Luzifer/vault2env.git
synced 2024-11-09 16:50:06 +00:00
Fix: Reduce number of errors caused by empty transform set
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
4ae359a14a
commit
40f2cdc7d7
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -112,6 +112,10 @@ func main() {
|
||||||
envData := map[string]string{}
|
envData := map[string]string{}
|
||||||
|
|
||||||
for _, setName := range cfg.TransformSet {
|
for _, setName := range cfg.TransformSet {
|
||||||
|
if setName == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if set, ok := transformSets[setName]; ok {
|
if set, ok := transformSets[setName]; ok {
|
||||||
cfg.Transform = append(cfg.Transform, set...)
|
cfg.Transform = append(cfg.Transform, set...)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue