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:
parent
abe646e951
commit
ae279799fd
|
@ -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'
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue