Skip to content

Commit

Permalink
salt/state.py: support retry: True as per docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Doherty committed Nov 8, 2024
1 parent 0dc964f commit 8fcd159
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions salt/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -2708,10 +2708,13 @@ def verify_retry_data(self, retry_data):
]
else:
validated_retry_data[expected_key] = retry_defaults[expected_key]

elif isinstance(retry_data, bool) and retry_data:
validated_retry_data = retry_defaults
else:
log.warning(
"State is set to retry, but a valid dict for retry "
"configuration was not found. Using retry defaults"
"State is set to retry, but retry: True or a valid dict for "
"retry configuration was not found. Using retry defaults"
)
validated_retry_data = retry_defaults
return validated_retry_data
Expand Down

0 comments on commit 8fcd159

Please sign in to comment.