]> git.proxmox.com Git - pve-cluster.git/commit
api: join info: return explicit error code for no-cluster
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 7 Nov 2021 19:45:39 +0000 (20:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 7 Nov 2021 19:45:41 +0000 (20:45 +0100)
commita7b6c5289ffd4d58d0043342d64f549d25237dfe
treeb0af307a1306ac18aa922c00b5f9a6bfad2d8b34
parent3e1a95d7858e61c2cd192425afaec5e41dd44de0
api: join info: return explicit error code for no-cluster

allows an API client to more easily differ between this OK "error"
and an actual exception.

Note that I'd rather now just return undef or an empty object for the
no cluster case (not to sure about the original reasons about the die
anymore), but that would be a breaking change, and in fact it would
break current pve-manager versions out there, so schedule that for
the next major release (if we still want it then)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/API2/ClusterConfig.pm