From 192d897ce97120db98aca6d6bb840c4243a4b5b3 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Mon, 27 Nov 2023 08:34:07 -0800 Subject: [PATCH] Remove version field from iLO error According to bug https://bugs.launchpad.net/sushy/+bug/2028214 the 2.15 value in the error string we had recorded for iLO devices, is actually a version indicator according to one of the ilo developers. Closes-Bug: 2028214 Related-Bug: 2021995 Change-Id: I0059341e3815f2d13bdaf1efa794e29a6f2cd503 --- sushy/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sushy/connector.py b/sushy/connector.py index c0756e1f..b72322c1 100644 --- a/sushy/connector.py +++ b/sushy/connector.py @@ -100,7 +100,7 @@ class Connector(object): LOG.debug('iDRAC is not yet ready after previous operation. ' 'Error: %(err)s', {'err': exc_str}) retry = True - elif 'iLO.2.15.InvalidOperationForSystemState' in exc_str: + elif 'iLO' in exc_str and 'InvalidOperationForSystemState' in exc_str: LOG.debug('iLO is not ready after previous operation. ' 'Error: %(error)s', {'err': exc_str}) retry = True