only list iscsi when enabled (content == images)

This commit is contained in:
Dietmar Maurer
2012-02-15 09:33:12 +01:00
parent 31a49afc09
commit 0c1473f928
3 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=libpve-storage-perl
PKGREL=10
PKGREL=11
DESTDIR=
PREFIX=/usr

View File

@ -76,6 +76,7 @@ __PACKAGE__->register_method ({
my $res = {};
my @sids = PVE::Storage::storage_ids($cfg);
foreach my $storeid (@sids) {
next if !$info->{$storeid};
my $privs = [ 'Datastore.Audit', 'Datastore.AllocateSpace' ];
next if !$rpcenv->check_any($authuser, "/storage/$storeid", $privs, 1);
next if $param->{storage} && $param->{storage} ne $storeid;

View File

@ -1,3 +1,9 @@
libpve-storage-perl (2.0-11) unstable; urgency=low
* only list iscsi when enabled (content == images)
-- Proxmox Support Team <support@proxmox.com> Wed, 15 Feb 2012 09:33:01 +0100
libpve-storage-perl (2.0-10) unstable; urgency=low
* also list tar.gz and tar.lzo backup files