diff options
| author | Stefan Hanreich <s.hanreich@proxmox.com> | 2025-09-04 10:18:29 +0200 |
|---|---|---|
| committer | Wolfgang Bumiller <w.bumiller@proxmox.com> | 2025-09-04 14:16:41 +0200 |
| commit | 1984f67433fa6ba9c9a60bc6046a6ae66120e919 (patch) | |
| tree | 3dbc8b4b00a7df1f4c1754dc95ecec745a544c23 | |
| parent | 1e0e33d5993df3211e77c57c678afab3e7217734 (diff) | |
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 <s.hanreich@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
| -rw-r--r-- | src/PVE/API2/Network/SDN.pm | 4 |
1 files changed, 4 insertions, 0 deletions
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; }, }); |
