Skip to content

Commit aab1c26

Browse files
authored
Merge pull request #694 from Pure-Storage-Ansible/duration-logic
Fix duration logic check
2 parents 80e3cdf + 67bd1ef commit aab1c26

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- purefa_ra - Fixed duration check logic

plugins/modules/purefa_ra.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
version_added: '1.0.0'
2121
short_description: Enable or Disable Pure Storage FlashArray Remote Assist
2222
description:
23-
- Enablke or Disable Remote Assist for a Pure Storage FlashArray.
23+
- Enable or Disable Remote Assist for a Pure Storage FlashArray.
2424
author:
2525
- Pure Storage Ansible Team (@sdodsley) <pure-ansible-team@purestorage.com>
2626
options:
@@ -34,7 +34,7 @@
3434
choices: [ enable, disable, absent, present, test ]
3535
duration:
3636
description:
37-
- Number of hours Remote Assist port statys open for.
37+
- Number of hours Remote Assist port stays open for.
3838
- Must be an integer between 4 and 48
3939
type: int
4040
default: 24
@@ -125,7 +125,7 @@ def enable_ra(module, array):
125125
api_version = array.get_rest_version()
126126
if not module.check_mode:
127127
if LooseVersion(DURATION_API) > LooseVersion(api_version):
128-
if 4 <= module.params["duration"] <= 48:
128+
if not 4 <= module.params["duration"] <= 48:
129129
module.fail_json(msg="The duration must be between 4-48 hours.")
130130
else:
131131
duration = module.params["duration"] * 3600000

0 commit comments

Comments
 (0)