Skip to content

Commit

Permalink
Fix duration logic check
Browse files Browse the repository at this point in the history
  • Loading branch information
sdodsley authored Jan 16, 2025
1 parent 80e3cdf commit f71e392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/purefa_ra.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def enable_ra(module, array):
api_version = array.get_rest_version()
if not module.check_mode:
if LooseVersion(DURATION_API) > LooseVersion(api_version):
if 4 <= module.params["duration"] <= 48:
if not 4 <= module.params["duration"] <= 48:
module.fail_json(msg="The duration must be between 4-48 hours.")
else:
duration = module.params["duration"] * 3600000
Expand Down

0 comments on commit f71e392

Please sign in to comment.