From: Johannes Cornelis Draaijer via pve-devel Date: Thu, 18 Apr 2024 16:44:27 +0000 (+0200) Subject: api: sdn: fix missing types for 'pending' fields. X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=00bf3203a1d243f7d3c4c704e09006a573ed7b11;p=matthieu%2Fpve-network.git api: sdn: fix missing types for 'pending' fields. Signed-off-by: Johannes Cornelis Draaijer Signed-off-by: Thomas Lamprecht --- 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}, },