mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-16 05:54:51 +00:00
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:
parent
2d38b8a1b9
commit
fbb0ec640a
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user