git://git.onelab.eu
/
bootmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
654d539
)
make sure we only use proper run_level values
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Wed, 25 Nov 2009 07:40:28 +0000
(07:40 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Wed, 25 Nov 2009 07:40:28 +0000
(07:40 +0000)
source/steps/UpdateRunLevelWithPLC.py
patch
|
blob
|
history
diff --git
a/source/steps/UpdateRunLevelWithPLC.py
b/source/steps/UpdateRunLevelWithPLC.py
index
7e703a8
..
82e4ced
100644
(file)
--- a/
source/steps/UpdateRunLevelWithPLC.py
+++ b/
source/steps/UpdateRunLevelWithPLC.py
@@
-34,7
+34,10
@@
def Run( vars, log ):
log.write( "\n\nStep: Updating node run level at PLC.\n" )
update_vals= {}
- update_vals['run_level']= vars['RUN_LEVEL']
+ # translate boot_state values to run_level value
+ if vars['RUN_LEVEL'] in ['diag', 'diagnose', 'disabled', 'disable']:
+ vars['RUN_LEVEL']='safeboot'
+ update_vals['run_level']=vars['RUN_LEVEL']
try:
BootAPI.call_api_function( vars, "ReportRunlevel", (update_vals,) )
log.write( "Successfully updated run level for this node at PLC\n" )