print api res: always allow result to be undef if optional
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 May 2019 06:52:19 +0000 (06:52 +0000)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 May 2019 06:52:28 +0000 (06:52 +0000)
commitc0b8717c443436d724f4e0be9cfce725d8123df0
tree25a63f410a9da11f656621637e64f038329e5c27
parentb610385849cd365b5bc8211057ed8cd456ebc3d8
print api res: always allow result to be undef if optional

If the return schema says that it's optionally returns something then
we want to allow returning nothing, i.e., undef

Co-developed-by: Dominic J├Ąger <d.jaeger@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/CLIFormatter.pm