volume_snapshot_list: remove $ip parameter

We want to handle ssh connections somewhere else (not inside the
storage plugins).
This commit is contained in:
Dietmar Maurer
2017-05-10 07:02:42 +02:00
parent 3d4949692a
commit 17be2e9a0c
4 changed files with 5 additions and 10 deletions

View File

@ -264,13 +264,13 @@ sub volume_has_feature {
}
sub volume_snapshot_list {
my ($cfg, $volid, $prefix, $ip) = @_;
my ($cfg, $volid, $prefix) = @_;
my ($storeid, $volname) = parse_volume_id($volid, 1);
if ($storeid) {
my $scfg = storage_config($cfg, $storeid);
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
return $plugin->volume_snapshot_list($scfg, $storeid, $volname, $prefix, $ip);
return $plugin->volume_snapshot_list($scfg, $storeid, $volname, $prefix);
} elsif ($volid =~ m|^(/.+)$| && -e $volid) {
die "send file/device '$volid' is not possible\n";
} else {