From: Marcin Haba Date: Fri, 10 Mar 2023 13:40:57 +0000 (+0100) Subject: baculum: Tweak fix list restore hosts output value X-Git-Tag: Release-13.0.3~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=109e03ba97533f2db6013c5e4a982fd0522dd055;p=thirdparty%2Fbacula.git baculum: Tweak fix list restore hosts output value --- diff --git a/gui/baculum/protected/API/Pages/API/PluginVSphereListRestoreHosts.php b/gui/baculum/protected/API/Pages/API/PluginVSphereListRestoreHosts.php index f386993a9..2d83ba216 100644 --- a/gui/baculum/protected/API/Pages/API/PluginVSphereListRestoreHosts.php +++ b/gui/baculum/protected/API/Pages/API/PluginVSphereListRestoreHosts.php @@ -81,11 +81,12 @@ class PluginVSphereListRestoreHosts extends ConsoleOutputQueryPage { } if ($out->exitcode !== 0) { + $output = implode(PHP_EOL, $out->output); $out->error = PluginVSphereError::ERROR_EXECUTING_PLUGIN_QUERY_COMMAND; - $out->output = PluginVSphereError::MSG_ERROR_EXECUTING_PLUGIN_QUERY_COMMAND . implode(PHP_EOL, $out->output); + $out->output = PluginVSphereError::MSG_ERROR_EXECUTING_PLUGIN_QUERY_COMMAND . $output; $this->getModule('logging')->log( Logging::CATEGORY_EXECUTE, - $out->output . ", Error={$out->error}" + $output . ", Error={$out->error}" ); } else { $out->error = BconsoleError::ERROR_NO_ERRORS;