]> git.puffer.fish Git - matthieu/pve-network.git/commitdiff
api: sdn: fix missing types for 'pending' fields.
authorJohannes Cornelis Draaijer via pve-devel <pve-devel@lists.proxmox.com>
Thu, 18 Apr 2024 16:44:27 +0000 (18:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 11:56:48 +0000 (13:56 +0200)
Signed-off-by: Johannes Cornelis Draaijer <jcdra1@gmail.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/API2/Network/SDN/Controllers.pm
src/PVE/API2/Network/SDN/Zones.pm

index 0540a6524dc1e96a11bc9a3588321e3c6c0c8a6e..38a685d48d06c5440d8b40fbfc03c37e786015ab 100644 (file)
@@ -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}" } ],
index 35e2f7f5c6dba6ec5c17564fd2c7b6675b7bd84b..2c279832ddb51e4d8b42a4c1ec5870e09d0af02a 100644 (file)
@@ -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},
                          },