mirror of
git://git.proxmox.com/git/pve-zsync.git
synced 2025-01-03 09:17:37 +03:00
followup: pass properties without value
our GetOPts definition of it does not defines a value, so use it as boolean flag like 'verbose' and either pass ther param or not. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
70253912d0
commit
cd9247d50b
@ -296,7 +296,7 @@ sub param_to_job {
|
||||
$job->{source} = $param->{source};
|
||||
$job->{source_user} = $param->{source_user};
|
||||
$job->{dest_user} = $param->{dest_user};
|
||||
$job->{properties} = $param->{properties} ? $param->{properties} : 0;
|
||||
$job->{properties} = !!$param->{properties};
|
||||
|
||||
return $job;
|
||||
}
|
||||
@ -442,7 +442,7 @@ sub format_job {
|
||||
$text .= " --verbose" if $job->{verbose};
|
||||
$text .= " --source-user $job->{source_user}";
|
||||
$text .= " --dest-user $job->{dest_user}";
|
||||
$text .= " --properties $job->{properties}" if $job->{properties};
|
||||
$text .= " --properties" if $job->{properties};
|
||||
$text .= "\n";
|
||||
|
||||
return $text;
|
||||
|
Loading…
Reference in New Issue
Block a user