From eb8335eb307f02a0a93524794f3f0792b7af930e Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Fri, 1 Jan 2016 12:04:12 +0100 Subject: [PATCH] baculum: Fix showing bconsole test result in configuration wizard --- gui/baculum/protected/Class/Bconsole.php | 3 ++- gui/baculum/protected/Pages/ConfigurationWizard.page | 6 ++---- gui/baculum/protected/Pages/ConfigurationWizard.php | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gui/baculum/protected/Class/Bconsole.php b/gui/baculum/protected/Class/Bconsole.php index d16191e577..496058e238 100644 --- a/gui/baculum/protected/Class/Bconsole.php +++ b/gui/baculum/protected/Class/Bconsole.php @@ -138,7 +138,8 @@ class Bconsole extends TModule { public function testBconsoleCommand(array $command, $bconsoleCmdPath, $bconsoleCfgPath, $useSudo) { $this->setEnvironmentParams($bconsoleCmdPath, $bconsoleCfgPath, null, $useSudo); $director = array_shift($this->getDirectors()->output); - return $this->bconsoleCommand($director, $command); + $result = $this->bconsoleCommand($director, $command); + return $result; } } ?> diff --git a/gui/baculum/protected/Pages/ConfigurationWizard.page b/gui/baculum/protected/Pages/ConfigurationWizard.page index b0ca6c48e5..c070e703b0 100644 --- a/gui/baculum/protected/Pages/ConfigurationWizard.page +++ b/gui/baculum/protected/Pages/ConfigurationWizard.page @@ -157,7 +157,6 @@ -
@@ -197,8 +196,8 @@ <%[ Loading... ]%> - Validate <%[ OK ]%> - Invalidate <%[ Connection error ]%> + Validate <%[ OK ]%> + Invalidate <%[ Connection error ]%> @@ -224,7 +223,6 @@

<%[ NOTE! ]%>
<%[ {user} keyword will be replaced for each logged user into according username. ]%>

-
diff --git a/gui/baculum/protected/Pages/ConfigurationWizard.php b/gui/baculum/protected/Pages/ConfigurationWizard.php index d9a4e498ba..f541cbeec2 100644 --- a/gui/baculum/protected/Pages/ConfigurationWizard.php +++ b/gui/baculum/protected/Pages/ConfigurationWizard.php @@ -229,7 +229,6 @@ class ConfigurationWizard extends BaculumPage $isValidate = ($result === 0); $this->BconsoleTestResultOk->Display = ($isValidate === true) ? 'Dynamic' : 'None'; $this->BconsoleTestResultErr->Display = ($isValidate === false) ? 'Dynamic' : 'None'; - $this->Step4Content->render($param->NewWriter); } } ?> -- 2.39.5