Skip to content

Commit aa48d2b

Browse files
author
Otávio Fernandes
committed
Input and output dirs are not mandatory anymore.
1 parent 6b81e4f commit aa48d2b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/vault-handler/config.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ func (c *Config) Validate() error {
3030
if c.VaultToken != "" && (c.VaultRoleID != "" || c.VaultSecretID != "") {
3131
return fmt.Errorf("vault-token can't be used in combination with role-id or secret-id")
3232
}
33-
if c.InputDir == "" && c.OutputDir == "" {
34-
return fmt.Errorf("both input-dir and output-dir are empty")
35-
}
3633
if c.InputDir != "" && !isDir(c.InputDir) {
3734
return fmt.Errorf("input-dir '%s' is not found", c.InputDir)
3835
}

0 commit comments

Comments
 (0)