mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-05 04:27:56 +00:00
f6ba3802bc
nodereseat printed "Error: " and nothing else against a bmc that refused the credentials. The redfish plugin reports it properly, but the message it emits re-raises TargetEndpointBadCredentials with no arguments when a single node is addressed, and the enclosure plugin renders that with str(e), which is empty. Both hardwaremanagement plugins already had a helper for exactly this, one copy each. Keep one in confluent.exceptions instead, teach it to fall back to the description a confluent exception carries by class before falling back to the exception name, and use it in the enclosure plugin too. get_error_body had the mirror image of the same bug, joining the class description and the message unconditionally and so answering "Bad Credentials -" with a separator and nothing after it. The apierrorstr property beside it already gets this right, so use it.