IBM / ansible-power-hmc

Developer contributions for Ansible Automation on Power (HMC)
GNU General Public License v3.0
26 stars 41 forks source link

powervm_dlpar shows "changed" as result even if nothing was changed #111

Open neikei opened 1 year ago

neikei commented 1 year ago

Describe the bug ibm.power_hmc.powervm_dlpar shows "changed" as result even if nothing was changed.

changed: [hmc0001] => changed=true
  partition_info:
    mem: '2048'
    pool_id: '0'
    proc: '2'
    proc_unit: '0.2'
    sharing_mode: uncapped
    uncapped_weight: '128'
    vm_name: lpar0001

To Reproduce Steps to reproduce the behavior:

  1. Add a task "ibm.power_hmc.powervm_dlpar" to your playbook
  2. Run the playbook
  3. Run the playbook again
  4. See "changed" as result, but there was nothing changed

Expected behavior The result should show "changed" only when changes are made. Otherwise it would be great to get "ok" as result.

Environment (please complete the following information):