git://git.onelab.eu
/
www-register-wizard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
newly created node can be declared 'reservable'
[www-register-wizard.git]
/
application
/
controllers
/
confirm.php
diff --git
a/application/controllers/confirm.php
b/application/controllers/confirm.php
index
83fe71c
..
dfd0184
100644
(file)
--- 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';
// Common functions
require_once 'plc_functions.php';
-require_once 'plc_sorts.php';
include 'plc_objects.php';
include 'plc_objects.php';
@@
-164,12
+163,12
@@
class Confirm extends Controller {
{
global $api, $plc;
$hostname = $data['node_id'];
{
global $api, $plc;
$hostname = $data['node_id'];
- $api->UpdateNode( $hostname, array( "boot_state" => 'r
ins
') );
+ $api->UpdateNode( $hostname, array( "boot_state" => 'r
einstall
') );
$ret = $api->RebootNodeWithPCU( $hostname );
if ( "$ret" != "0" ) {
$ret = $api->RebootNodeWithPCU( $hostname );
if ( "$ret" != "0" ) {
- $data['error'] = $ret;
- } else {
$data['error'] = $api->error();
$data['error'] = $api->error();
+ } else {
+ $data['error'] = $ret;
}
}
}
}
}
}