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:
ed68635
)
- handle BootAPI failures gracefully
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 12 Jan 2007 19:11:17 +0000
(19:11 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 12 Jan 2007 19:11:17 +0000
(19:11 +0000)
source/steps/UpdateBootStateWithPLC.py
patch
|
blob
|
history
diff --git
a/source/steps/UpdateBootStateWithPLC.py
b/source/steps/UpdateBootStateWithPLC.py
index
001dcd9
..
cb9cff3
100644
(file)
--- a/
source/steps/UpdateBootStateWithPLC.py
+++ b/
source/steps/UpdateBootStateWithPLC.py
@@
-30,10
+30,11
@@
def Run( vars, log ):
update_vals= {}
update_vals['boot_state']= vars['BOOT_STATE']
update_vals= {}
update_vals['boot_state']= vars['BOOT_STATE']
- BootAPI.call_api_function( vars, "BootUpdateNode", (update_vals,) )
-
- log.write( "Successfully updated boot state for this node at PLC\n" )
-
+ try:
+ BootAPI.call_api_function( vars, "BootUpdateNode", (update_vals,) )
+ log.write( "Successfully updated boot state for this node at PLC\n" )
+ except BootManagerException, e:
+ log.write( "Unable to update boot state for this node at PLC: %s.\n" % e )
notify = vars.get("STATE_CHANGE_NOTIFY",0)
notify = vars.get("STATE_CHANGE_NOTIFY",0)