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

Not able to sort or filter oneview_firmware_driver_facts #672

Closed nlin24 closed 3 years ago

nlin24 commented 3 years ago

Scenario/Intent

I'm trying to get the OV firmware bundle facts, filtered by status="OK' and sorted by date in descending order. It doesn't seem to work. The playbook runs but the firmware driver facts displayed in the debug message are not filtered nor sorted. Can you please take a look at my task and see if there is anything that I may have missed?

Environment Details

Steps to Reproduce

Here is my task:

oneview_firmware_driver_facts:
  hostname: "{{ov_hostname}}"
  username: "{{ ov_username }}"
  password: "{{ ov_password }}"
  api_version: 2200
  params:
    sort: 'created:descending'
    filter: status='OK'
  delegate_to: localhost

debug: var=firmware_drivers

Expected Result

I'm expecting the debug message to display only the filtered list of firmware bundles and sorted by most recently created first.

Actual Result

The debug message displays all of the firmware bundled. Nothing was filtered and the list was not sorted.

VenkateshRavula commented 3 years ago

We will take this as an enhancement request and will try to fix ASAP.

nabhajit-ray commented 3 years ago

Hi @nlin24 ,

The issue seems to be from OneView side and an issue is being raised against it.

nabhajit-ray commented 3 years ago

The fix will be available in Ansible Collections whenever OneView fixes the issue. Closing it here