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>
$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;
}
$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;