Update virtual media boot-related constants

Constants related to virtual media boot are modified to identify LC and
RAC event messages only, and not the version.

Story: 2008708
Task: 42042

Change-Id: Id8d1584bb07378fc99247ed047a5df2645a7ce72
This commit is contained in:
Devendra Kulkarni 2021-02-03 03:27:52 -05:00 committed by Aija Jauntēva
parent abe646e951
commit ae279799fd
2 changed files with 4 additions and 4 deletions

View File

@ -10,5 +10,5 @@
# License for the specific language governing permissions and limitations
# under the License.
IDRAC_CONFIG_PENDING = 'IDRAC.1.6.LC068'
IDRAC_JOB_RUNNING = 'IDRAC.1.6.RAC0679'
IDRAC_CONFIG_PENDING = 'LC068'
IDRAC_JOB_RUNNING = 'RAC0679'

View File

@ -147,7 +147,7 @@ VFDD\
LOG.warning('iDRAC error: %s',
error.get('Message', 'Unknown error'))
if message_id == constants.IDRAC_CONFIG_PENDING:
if constants.IDRAC_CONFIG_PENDING in message_id:
if not rebooted:
LOG.warning(
'Let\'s try to turn it off and on again... '
@ -157,7 +157,7 @@ VFDD\
rebooted = True
break
elif message_id == constants.IDRAC_JOB_RUNNING:
elif constants.IDRAC_JOB_RUNNING in message_id:
pass
else: