X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=application%2Fcontrollers%2Fconfirm.php;h=dfd0184c6cbadd09263b27324ed7ddd6ce1a180b;hb=d557c8eaf9a4a4f041672b7e5adb0fae9c7184a9;hp=2f399f575f8fbee091ec988efc278ba75d2020a2;hpb=652223da644ffb9c9acbc04118a5c174fab10926;p=www-register-wizard.git diff --git a/application/controllers/confirm.php b/application/controllers/confirm.php index 2f399f5..dfd0184 100644 --- a/application/controllers/confirm.php +++ b/application/controllers/confirm.php @@ -11,7 +11,6 @@ include 'plc_header.php'; // Common functions require_once 'plc_functions.php'; -require_once 'plc_sorts.php'; include 'plc_objects.php'; @@ -164,12 +163,13 @@ class Confirm extends Controller { { 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(); } } ?>