// Common functions
require_once 'plc_functions.php';
-require_once 'plc_sorts.php';
include 'plc_objects.php';
{
global $api, $plc;
$hostname = $data['node_id'];
- $api->UpdateNode( $hostname, array( "boot_state" => 'rins') );
+ $api->UpdateNode( $hostname, array( "boot_state" => 'reinstall') );
$ret = $api->RebootNodeWithPCU( $hostname );
- if ( $ret != 0 ) {
+ if ( "$ret" != "0" ) {
$data['error'] = $api->error();
+ } else {
+ $data['error'] = $ret;
}
- $data['error'] = $api->error();
}
}
?>