IBM-Security / ibmsecurity

Idempotent functions for IBM Security Appliance REST APIs. Currently covering ISAM and ISDS Appliances.
Apache License 2.0
47 stars 73 forks source link

available_updates.py is not up to date #385

Closed nbarni94 closed 1 year ago

nbarni94 commented 1 year ago

We found an error in the available_updates.py during our update process.

An exception occurred in line 138 with the following error

if upd['state'] == 'Installing':
   KeyError: 'state'

As we can see the ['state'] parameter is not exists anymore on the https://{appliance_hostname}/updates/available API from the 10.0.5 version. The IBM documentation is also not up to date.

Could you please fix the code?

tombosmansibm commented 1 year ago

Hi , I will pick this up.

tombosmansibm commented 1 year ago

Note that there's also a change in the expected value for "name" the "name": "Firmware" in 10.0.3.0-->10.0.4.0 must now be "name": "isva" in 10.0.4.0 -> 10.0.5.0