]> git.proxmox.com Git - pve-common.git/commitdiff
schema_get_type_text: return format_description if available
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 7 May 2016 08:57:14 +0000 (10:57 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 7 May 2016 08:57:14 +0000 (10:57 +0200)
src/PVE/PodParser.pm

index 116cc2564ce10265553dd9977914891718771664..4f2868a0f6f3e427cae85bf0a93696298deb4c4b 100644 (file)
@@ -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}) {