mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-29 19:30:08 +00:00
Fix: list_images returns now a array of hashes so adopt the code.
This commit is contained in:
parent
db4c35c3a3
commit
37efc934a7
@ -133,9 +133,10 @@ __PACKAGE__->register_method ({
|
||||
foreach my $storeid (@$storage_list) {
|
||||
my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
|
||||
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
|
||||
my $volids = $plugin->list_images($storeid, $scfg, $vmid, undef, $cache);
|
||||
foreach my $volid (@$volids) {
|
||||
my ($storeid, $volname) = parse_volume_id($volid);
|
||||
my $images = $plugin->list_images($storeid, $scfg, $vmid, undef, $cache);
|
||||
foreach my $disk (@$images) {
|
||||
my $volid = $disk->{volid};
|
||||
my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid);
|
||||
my $list = $plugin->volume_snapshot_list($scfg, $storeid, $volname); # fixme: pass $cache
|
||||
my $found_replication_snapshots = 0;
|
||||
foreach my $snap (@$list) {
|
||||
|
Loading…
Reference in New Issue
Block a user