From 1984f67433fa6ba9c9a60bc6046a6ae66120e919 Mon Sep 17 00:00:00 2001 From: Stefan Hanreich Date: Thu, 4 Sep 2025 10:18:29 +0200 Subject: sdn: api: return null for rollback / lock endpoints lock_sdn_config can return a boolean value, which will then in turn get returned as data from the API calls. Since we hint type null here, this leads to problems with the pve-api-client in rust. Fix the return value for this API call by adding an explicit return statement. Signed-off-by: Stefan Hanreich Reviewed-by: Dominik Csapak Tested-by: Dominik Csapak --- src/PVE/API2/Network/SDN.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PVE/API2/Network/SDN.pm b/src/PVE/API2/Network/SDN.pm index af00b1a..88b229c 100644 --- a/src/PVE/API2/Network/SDN.pm +++ b/src/PVE/API2/Network/SDN.pm @@ -192,6 +192,8 @@ __PACKAGE__->register_method({ $param->{'lock-token'}, ); } + + return; }, }); @@ -247,6 +249,8 @@ __PACKAGE__->register_method({ PVE::Network::SDN::lock_sdn_config( $rollback, "could not rollback SDN configuration", $lock_token, ); + + return; }, }); -- cgit v1.2.3