api: fix rendering of filepath/string parameters

25d9bda941 broke this check,
but it is a better idea to check against the actual type
rather then the rendered type text anyway.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2017-05-15 09:31:07 +02:00
parent 2d38b8a1b9
commit fbb0ec640a

View File

@ -415,7 +415,7 @@ my $get_property_description = sub {
$type = '';
}
if ($fileparams && $type eq 'string') {
if ($fileparams && $phash->{type} eq 'string') {
foreach my $elem (@$fileparams) {
if ($name eq $elem) {
$type = '<filepath>';