dell / ansible-powerscale

PowerScale (Isilon) Ansible modules
GNU General Public License v3.0
30 stars 21 forks source link

[BUG]: Module synciq policy throws TypeError when trying to create new policy #130

Open nikolisg7 opened 3 weeks ago

nikolisg7 commented 3 weeks ago

Describe the bug When trying to create a new synciq policy using the synciq_policy module (task like the example https://github.com/dell/ansible-powerscale/blob/main/docs/modules/synciqpolicy.rst#examples), the module fails with TypeError. Below is the trace

To Reproduce Create and run a synciqpolicy task like the one in the module example

Expected behavior Create the policy if it doesn't exist; update the policy if there are differences

Screenshots If applicable, add screenshots to help explain your problem.

Logs

File \"/Users/dduck/.ansible/tmp/ansible-tmp-1730132518.507843-64940-262208715523277/AnsiballZ_synciqpolicy.py\", line 99, in     _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/Users/dduck/.ansible/tmp/ansible-tmp-    1730132518.507843-64940-262208715523277/AnsiballZ_synciqpolicy.py\", line 47, in invoke_module\n    runpy.run_module(mod_name    ='ansible_collections.dellemc.powerscale.plugins.modules.synciqpolicy', init_globals=dict(_module_fqn='ansible_collections.de    llemc.powerscale.plugins.modules.synciqpolicy', _modlib_path=modlib_path),\n  File \"/Users/dduck//envs/ansible/lib/python3.1    0/runpy.py\", line 224, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/Users/d    duck//envs/ansible/lib/python3.10/runpy.py\", line 96, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n      File \"/Users/dduck//envs/ansible/lib/python3.10/runpy.py\", line 86, in _run_code\n    exec(code, run_globals)\n  File \"/v    ar/folders/ch/5vd8v1jn0798dcmzkvygb4qw0000gn/T/ansible_dellemc.powerscale.synciqpolicy_payload_4fej4op7/ansible_dellemc.power    scale.synciqpolicy_payload.zip/ansible_collections/dellemc/powerscale/plugins/modules/synciqpolicy.py\", line 1100, in <modul    e>\n  File \"/var/folders/ch/5vd8v1jn0798dcmzkvygb4qw0000gn/T/ansible_dellemc.powerscale.synciqpolicy_payload_4fej4op7/ansibl    e_dellemc.powerscale.synciqpolicy_payload.zip/ansible_collections/dellemc/powerscale/plugins/modules/synciqpolicy.py\", line     1096, in main\n  File \"/var/folders/ch/5vd8v1jn0798dcmzkvygb4qw0000gn/T/ansible_dellemc.powerscale.synciqpolicy_payload_4fej    4op7/ansible_dellemc.powerscale.synciqpolicy_payload.zip/ansible_collections/dellemc/powerscale/plugins/modules/synciqpolicy.    py\", line 881, in perform_module_operation\nTypeError: cannot unpack non-iterable NoneType object\n", "module_stdout": "", "    msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

System Information (please complete the following information):

Additional context Add any other context about the problem here.

anupamaloke commented 1 week ago

@nikolisg7, this looks same as #44. We are investigating this and will fix it in upcoming releases.