Remove $vmid form ssh prepare and finalize command.
This commit is contained in:
parent
32a231f754
commit
545e9cb0a7
@ -116,7 +116,7 @@ sub remote_prepare_local_job {
|
||||
my ($ssh_info, $jobid, $vmid, $volumes, $last_sync, $force) = @_;
|
||||
|
||||
my $ssh_cmd = PVE::Cluster::ssh_info_to_command($ssh_info);
|
||||
my $cmd = [@$ssh_cmd, '--', 'pvesr', 'prepare-local-job', $jobid, $vmid];
|
||||
my $cmd = [@$ssh_cmd, '--', 'pvesr', 'prepare-local-job', $jobid];
|
||||
push @$cmd, @$volumes if scalar(@$volumes);
|
||||
|
||||
push @$cmd, '--last_sync', $last_sync;
|
||||
@ -142,7 +142,7 @@ sub remote_finalize_local_job {
|
||||
|
||||
my $ssh_cmd = PVE::Cluster::ssh_info_to_command($ssh_info);
|
||||
my $cmd = [@$ssh_cmd, '--', 'pvesr', 'finalize-local-job', $jobid,
|
||||
$vmid, @$volumes, '--last_sync', $last_sync];
|
||||
@$volumes, '--last_sync', $last_sync];
|
||||
|
||||
PVE::Tools::run_command($cmd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user