X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FUpdateBootStateWithPLC.py;h=cb9cff3ca1afda3b4b6a205a24e7c4959c9ba995;hb=8381dfe5e46033ee8003bc2e3536002caf64bc16;hp=001dcd9cdd99e0ae6b98853548591d048ee87f37;hpb=ed6863554c04ea04517f5424fa31ea9175cb2644;p=bootmanager.git diff --git a/source/steps/UpdateBootStateWithPLC.py b/source/steps/UpdateBootStateWithPLC.py index 001dcd9..cb9cff3 100644 --- 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'] - 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)