mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-05 04:27:56 +00:00
9012888cc0
get_webclient falls off its end when /api/login answers anything but 200, so it returned None. wc() passes that back, and thirty of the thirty-four call sites use it unchecked, so a refused login arrived as "'NoneType' object has no attribute 'grab_json_response'" from wherever it landed. Raised where the failure is known, and with the status: 404 is firmware with no web api, or a Redfish-only capture of one, while 401 is credentials it will not take. Neither was distinguishable before. The other four call sites are the inventory reads, and they always did check. They answer partially when the web interface is out of reach, which is why nodeinventory still says something useful. They ask through wc_if_available now, so that tolerance is stated rather than resting on a None.