pveam update: also print success

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-07-19 19:34:04 +02:00
parent e00a96d4e1
commit 2654543efa

View File

@ -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;