dell / ansible-powermax

Ansible Modules for Dell PowerMax
GNU General Public License v3.0
36 stars 35 forks source link

[BUG]:fatal: [localhost]: FAILED! => {"changed": false, "msg": "Delete storage group X999RSWP_12312423_tmp99CRTEST_RSWP failed with error get_storage_group_snapshot_generation_list() got an unexpected keyword argument 'storagegroup_id' "} #31

Closed rawstorage closed 8 months ago

rawstorage commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

storagegroup.py calls get_storage_group_snapshot_generation_list with the wrong parameter.

https://github.com/dell/ansible-powermax/blob/189e5ad993e5351d5c9dcdfcbb7ca40c6a993feb/plugins/modules/storagegroup.py#L1437C25-L1437C40

        for snap in snap_list:
            gen_list = self.replication.\
                get_storage_group_snapshot_generation_list(
                    storagegroup_id=sg_name,
                    snap_name=snap)

Should be for snap in snap_list: gen_list = self.replication.\ get_storage_group_snapshot_generation_list( storage_group_id=sg_name, snap_name=snap)

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Delete storage group X999RSWP_12312423_tmp99CRTEST_RSWP failed with error get_storage_group_snapshot_generation_list() got an unexpected keyword argument 'storagegroup_id' "}

Please fix, issue seen at HSBC

anupamaloke commented 8 months ago

Closed by #35