diff options
| author | Johannes Cornelis Draaijer via pve-devel <pve-devel@lists.proxmox.com> | 2024-04-18 18:44:27 +0200 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2024-04-22 13:56:48 +0200 |
| commit | 00bf3203a1d243f7d3c4c704e09006a573ed7b11 (patch) | |
| tree | 6479ccf7e2768d36f1ee0d43fd1a82c4af116c1c | |
| parent | 835a1ff226bb0d1ca9edd3079803855c32855e25 (diff) | |
api: sdn: fix missing types for 'pending' fields.
Signed-off-by: Johannes Cornelis Draaijer <jcdra1@gmail.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
| -rw-r--r-- | src/PVE/API2/Network/SDN/Controllers.pm | 2 | ||||
| -rw-r--r-- | src/PVE/API2/Network/SDN/Zones.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/PVE/API2/Network/SDN/Controllers.pm b/src/PVE/API2/Network/SDN/Controllers.pm index 0540a65..38a685d 100644 --- a/src/PVE/API2/Network/SDN/Controllers.pm +++ b/src/PVE/API2/Network/SDN/Controllers.pm @@ -71,7 +71,7 @@ __PACKAGE__->register_method ({ properties => { controller => { type => 'string' }, type => { type => 'string' }, state => { type => 'string', optional => 1 }, - pending => { optional => 1}, + pending => { type => 'boolean', optional => 1 }, }, }, links => [ { rel => 'child', href => "{controller}" } ], diff --git a/src/PVE/API2/Network/SDN/Zones.pm b/src/PVE/API2/Network/SDN/Zones.pm index 35e2f7f..2c27983 100644 --- a/src/PVE/API2/Network/SDN/Zones.pm +++ b/src/PVE/API2/Network/SDN/Zones.pm @@ -100,7 +100,7 @@ __PACKAGE__->register_method ({ dnszone => { type => 'string', optional => 1}, ipam => { type => 'string', optional => 1}, dhcp => { type => 'string', optional => 1}, - pending => { optional => 1}, + pending => { type => 'boolean', optional => 1 }, state => { type => 'string', optional => 1}, nodes => { type => 'string', optional => 1}, }, |
