Skip to content

Commit fe1fd8c

Browse files
authored
Merge pull request #872 from Pure-Storage-Ansible/ra-fix
Fix duration API version comparison logic
2 parents 217afbd + faaab31 commit fe1fd8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/modules/purefa_ra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def enable_ra(module, array):
124124
res = {}
125125
api_version = array.get_rest_version()
126126
if not module.check_mode:
127-
if LooseVersion(DURATION_API) > LooseVersion(api_version):
127+
if LooseVersion(DURATION_API) <= LooseVersion(api_version):
128128
if not 4 <= module.params["duration"] <= 48:
129129
module.fail_json(msg="The duration must be between 4-48 hours.")
130130
else:

0 commit comments

Comments
 (0)