diff --git a/salt/state.py b/salt/state.py index d60d78c334fe..948a3c049f5a 100644 --- a/salt/state.py +++ b/salt/state.py @@ -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