From 36cffec73e06a4ba8e9d0b4eb6e3026dc6ac637e Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Fri, 13 Mar 2009 19:08:58 +0000 Subject: [PATCH] print a clear error when RebootNodeWithPCU returns a non-zero status. --- application/controllers/confirm.php | 5 +++-- application/views/stage8_rebootpcu.php | 11 ++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/application/controllers/confirm.php b/application/controllers/confirm.php index 2f399f5..83fe71c 100644 --- a/application/controllers/confirm.php +++ b/application/controllers/confirm.php @@ -166,10 +166,11 @@ class Confirm extends Controller { $hostname = $data['node_id']; $api->UpdateNode( $hostname, array( "boot_state" => 'rins') ); $ret = $api->RebootNodeWithPCU( $hostname ); - if ( $ret != 0 ) { + if ( "$ret" != "0" ) { + $data['error'] = $ret; + } else { $data['error'] = $api->error(); } - $data['error'] = $api->error(); } } ?> diff --git a/application/views/stage8_rebootpcu.php b/application/views/stage8_rebootpcu.php index 7998e54..1ef354e 100644 --- a/application/views/stage8_rebootpcu.php +++ b/application/views/stage8_rebootpcu.php @@ -31,6 +31,10 @@ The installation is complete; your machine has reached the final 'boot' state. You can continue to the final stage. + +
Reboot Failure:
+
+ @@ -52,13 +56,6 @@ - - - - - -- 2.43.0
Model:
Version:
Last Contact:
- -