Pure-Storage-Ansible / FlashArray-Collection

Ansible Collection for Pure Storage FlashArray
GNU General Public License v3.0
19 stars 24 forks source link

Errors out when pgroup and add_to_pgs used incorrectly #642

Closed skeerthivasan closed 2 months ago

skeerthivasan commented 2 months ago
SUMMARY

Errors out when pgroup and add_to_pgs used incorrectly Below purity version 6.3.4 should use pgroup and above 6.3.4 should use add_to_pgs.

ISSUE TYPE
COMPONENT NAME

purefa_volume.py

skeerthivasan commented 2 months ago

This won't work. You are using array.get_rest_version() which uses REST 2. The array being passed into the function is the REST 1 version. You only need to pass module as the only parameter to the function and then define array from the REST 2 SDK using array = get_array(module). This is because this module is a hybrid and uses both REST 1 and REST2 calls. If you look you will see reference to array6 all over where I'm differentiating between the two when they are both used in the same function.

@sdodsley , Strange it didn't error out during test, let me re-run and come back on this. Thanks.