HewlettPackard / oneview-ansible

This project is no longer being developed and has limited support. Please use the newer Ansible Collection project: https://github.com/HewlettPackard/oneview-ansible-collection
Apache License 2.0
104 stars 65 forks source link

oneview_enclosure_facts filetred on name returns ALL enclosures #449

Closed DungKHoang closed 4 years ago

DungKHoang commented 5 years ago

Scenario/Intent

query logical enclosures by name

Environment Details

Steps to Reproduce

- name: Gather facts about an Enclosure by name
  oneview_enclosure_facts:
    config: "{{ config }}"
    name: '0000A1662'
  delegate_to: localhost

Expected Result

return only 1 enclosure based on filter name

Actual Result

it returns ALL enclosures

sijeesh commented 5 years ago

@DungKHoang, Thanks for reporting this, there is a bug in the enclosure facts module. Please see this PR for the fix - https://github.com/HewlettPackard/oneview-ansible/pull/450

nabhajit-ray commented 4 years ago

@DungKHoang I am closing this as we did not hear from you. You can re-open the issue if you are still seeing this issue.