mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix bad placement of array variable (#50256)
This commit is contained in:
parent
04e2a94687
commit
cda4010024
1 changed files with 1 additions and 1 deletions
|
@ -329,12 +329,12 @@ def main():
|
|||
if not HAS_PURESTORAGE:
|
||||
module.fail_json(msg='purestorage sdk is required for this module in host')
|
||||
|
||||
array = get_system(module)
|
||||
api_version = array._list_available_rest_versions()
|
||||
if module.params['nqn'] is not None and NVMEF_API_VERSION not in api_version:
|
||||
module.fail_json(msg='NVMeF protocol not supported. Please upgrade your array.')
|
||||
state = module.params['state']
|
||||
protocol = module.params['protocol']
|
||||
array = get_system(module)
|
||||
host = get_host(module, array)
|
||||
if module.params['lun'] and not 1 <= module.params['lun'] <= 4095:
|
||||
module.fail_json(msg='LUN ID of {0} is out of range (1 to 4095)'.format(module.params['lun']))
|
||||
|
|
Loading…
Reference in a new issue