Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/module_utils/load_secrets_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,13 @@ def _validate_generate_mode(self, f):
path = self._get_field_path(f)
vault_policy = f.get("vaultPolicy", None)

if value is not None:
if value is not None and value != "":
return (
False,
"Secret has onMissingValue set to 'generate' but has a value set",
)

if path is not None:
if path is not None and path != "":
return (
False,
"Secret has onMissingValue set to 'generate' but has a path set",
Expand Down
Loading