From: Dietmar Maurer Date: Sat, 7 May 2016 08:57:14 +0000 (+0200) Subject: schema_get_type_text: return format_description if available X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=457c3fcb1e30d9e465cbaff9ea857d52a4a95e3c schema_get_type_text: return format_description if available --- diff --git a/src/PVE/PodParser.pm b/src/PVE/PodParser.pm index 116cc25..4f2868a 100644 --- a/src/PVE/PodParser.pm +++ b/src/PVE/PodParser.pm @@ -104,6 +104,8 @@ sub schema_get_type_text { if ($phash->{typetext}) { return $phash->{typetext}; + } elsif ($phash->{format_description}) { + return "<$phash->{format_description}>"; } elsif ($phash->{enum}) { return "(" . join(' | ', sort @{$phash->{enum}}) . ")"; } elsif ($phash->{pattern}) {