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>
This commit is contained in:
Johannes Cornelis Draaijer via pve-devel 2024-04-18 18:44:27 +02:00 committed by Thomas Lamprecht
parent 835a1ff226
commit 00bf3203a1
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ __PACKAGE__->register_method ({
properties => { controller => { type => 'string' }, properties => { controller => { type => 'string' },
type => { type => 'string' }, type => { type => 'string' },
state => { type => 'string', optional => 1 }, state => { type => 'string', optional => 1 },
pending => { optional => 1}, pending => { type => 'boolean', optional => 1 },
}, },
}, },
links => [ { rel => 'child', href => "{controller}" } ], links => [ { rel => 'child', href => "{controller}" } ],

View file

@ -100,7 +100,7 @@ __PACKAGE__->register_method ({
dnszone => { type => 'string', optional => 1}, dnszone => { type => 'string', optional => 1},
ipam => { type => 'string', optional => 1}, ipam => { type => 'string', optional => 1},
dhcp => { type => 'string', optional => 1}, dhcp => { type => 'string', optional => 1},
pending => { optional => 1}, pending => { type => 'boolean', optional => 1 },
state => { type => 'string', optional => 1}, state => { type => 'string', optional => 1},
nodes => { type => 'string', optional => 1}, nodes => { type => 'string', optional => 1},
}, },