migrate: replace target ip parameter with sshinfo parameter

This commit is contained in:
Wolfgang Bumiller
2017-05-23 09:04:47 +02:00
committed by Dietmar Maurer
parent dc7695377c
commit acd27197ce
2 changed files with 14 additions and 17 deletions

View File

@ -359,7 +359,8 @@ __PACKAGE__->register_method ({
# you need to get this working (fails currently, because storage_migrate() uses
# ssh to connect to local host (which is not needed
PVE::Storage::storage_migrate($cfg, $src_volid, $target_node, $target_sid, $target_volname);
my $sshinfo = PVE::Cluster::get_ssh_info($target_node);
PVE::Storage::storage_migrate($cfg, $src_volid, $sshinfo, $target_sid, $target_volname);
print "DEBUG: end worker $upid\n";