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

@ -495,7 +495,7 @@ sub volume_rollback_is_possible {
}
sub volume_snapshot_list {
my ($class, $scfg, $storeid, $volname, $prefix, $ip) = @_;
my ($class, $scfg, $storeid, $volname, $prefix) = @_;
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
@ -507,11 +507,6 @@ sub volume_snapshot_list {
my $cmd = ['zfs', 'list', '-r', '-H', '-S', 'name', '-t', 'snap', '-o',
'name', $zpath];
if ($ip) {
$ip = "[$ip]" if Net::IP::ip_is_ipv6($ip);
unshift @$cmd, 'ssh', '-o', ' BatchMode=yes', "root\@${ip}", '--';
}
my $outfunc = sub {
my $line = shift;