5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-01-03 09:17:37 +03:00
This commit is contained in:
Dietmar Maurer 2016-06-16 11:44:31 +02:00
parent 148408c325
commit 3927ecdb0a

View File

@ -107,7 +107,10 @@ sub check_pool_exists {
my ($target) = @_; my ($target) = @_;
my $cmd = []; my $cmd = [];
push @$cmd, 'ssh', "root\@$target->{ip}", '--', if $target->{ip};
if ($target->{ip}) {
push @$cmd, 'ssh', "root\@$target->{ip}", '--';
}
push @$cmd, 'zfs', 'list', '-H', '--', $target->{all}; push @$cmd, 'zfs', 'list', '-H', '--', $target->{all};
eval { eval {
run_cmd($cmd); run_cmd($cmd);