[pve-devel] applied: [PATCH storage] Status: Include command error in error message when storage activation fails
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Apr 11 08:05:57 CEST 2019
On 4/10/19 5:17 PM, Christian Ebner wrote:
> Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
> ---
> PVE/API2/Storage/Status.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm
> index 1b0486a..9a5a952 100644
> --- a/PVE/API2/Storage/Status.pm
> +++ b/PVE/API2/Storage/Status.pm
> @@ -442,7 +442,7 @@ __PACKAGE__->register_method ({
> PVE::Tools::run_command([@remcmd, '/usr/sbin/pvesm', 'status',
> '--storage', $param->{storage}]);
> };
> - die "can't activate storage '$param->{storage}' on node '$node'\n" if $@;
> + die "can't activate storage '$param->{storage}' on node '$node': $@\n" if $@;
>
> PVE::Tools::run_command([@remcmd, '/bin/mkdir', '-p', '--', PVE::Tools::shell_quote($dirname)],
> errmsg => "mkdir failed");
>
applied thanks!
More information about the pve-devel
mailing list