From 2654543efa105ed1dd8f3dc06bad7ea9eb9fcdb6 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 19 Jul 2019 19:34:04 +0200 Subject: [PATCH] pveam update: also print success Signed-off-by: Thomas Lamprecht --- PVE/CLI/pveam.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/PVE/CLI/pveam.pm b/PVE/CLI/pveam.pm index 6a73ede9..372d5f9e 100644 --- a/PVE/CLI/pveam.pm +++ b/PVE/CLI/pveam.pm @@ -42,8 +42,14 @@ __PACKAGE__->register_method ({ code => sub { my $dccfg = PVE::Cluster::cfs_read_file('datacenter.cfg'); - print STDERR "update failed - see /var/log/pveam.log for details\n" - if !PVE::APLInfo::update($dccfg->{http_proxy}); + + my $res = PVE::APLInfo::update($dccfg->{http_proxy}); + + if ($res) { + print STDOUT "update sucessful\n" + } else { + print STDERR "update failed - see /var/log/pveam.log for details\n" + } return undef;