- BootAPI.call_api_function( vars, "ReportRunlevel", (update_vals,) )
- log.write( "Successfully updated run level for this node at PLC\n" )
- except BootManagerException, e:
- log.write( "Unable to update run level for this node at PLC: %s.\n" % e )
+ BootAPI.call_api_function(vars, "ReportRunlevel", (update_vals,))
+ log.write("Successfully updated run level for this node at PLC\n")
+ except BootManagerException as e:
+ log.write("Unable to update run level for this node at PLC: {}.\n".format(e))