mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-16 18:53:28 +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 = '';
|
$type = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($fileparams && $type eq 'string') {
|
if ($fileparams && $phash->{type} eq 'string') {
|
||||||
foreach my $elem (@$fileparams) {
|
foreach my $elem (@$fileparams) {
|
||||||
if ($name eq $elem) {
|
if ($name eq $elem) {
|
||||||
$type = '<filepath>';
|
$type = '<filepath>';
|
||||||
|
Loading…
Reference in New Issue
Block a user