mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 02:23:23 +00:00
pveam update: also print success
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e00a96d4e1
commit
2654543efa
@ -42,8 +42,14 @@ __PACKAGE__->register_method ({
|
|||||||
code => sub {
|
code => sub {
|
||||||
|
|
||||||
my $dccfg = PVE::Cluster::cfs_read_file('datacenter.cfg');
|
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;
|
return undef;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user