add a way to return file changes (diffs)

This commit is contained in:
Dietmar Maurer 2011-12-20 11:19:50 +01:00
parent e42eedbca4
commit 272fe9ffa2
3 changed files with 22 additions and 1 deletions

View File

@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=1.0
PACKAGE=libpve-access-control
PKGREL=4
PKGREL=5
DESTDIR=
PREFIX=/usr

View File

@ -277,6 +277,9 @@ sub init_request {
PVE::Cluster::cfs_update();
$self->{result_count} = undef;
$self->{result_changes} = undef;
my $userconfig; # we use this for regression tests
foreach my $p (keys %params) {
if ($p eq 'userconfig') {
@ -337,6 +340,18 @@ sub get_result_count {
return $self->{result_count};
}
sub set_result_changes {
my ($self, $diff) = @_;
$self->{result_changes} = $diff;
}
sub get_result_changes {
my ($self) = @_;
return $self->{result_changes};
}
sub set_language {
my ($self, $lang) = @_;

View File

@ -1,3 +1,9 @@
libpve-access-control (1.0-5) unstable; urgency=low
* add a way to return file changes (diffs): set_result_changes()
-- Proxmox Support Team <support@proxmox.com> Tue, 20 Dec 2011 11:18:48 +0100
libpve-access-control (1.0-4) unstable; urgency=low
* new environment type for ha agents