[pdm-devel] [PATCH proxmox-datacenter-manager 2/9] api: sdn: rename "vnet" to "controller" in list_controller

Gabriel Goller g.goller at proxmox.com
Wed Nov 12 14:20:19 CET 2025


Due to a copy-paste error, the result array and error messages were
incorrectly named "vnet". This renames them to "controller" which is
correct.

Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---
 server/src/api/sdn/controllers.rs | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/server/src/api/sdn/controllers.rs b/server/src/api/sdn/controllers.rs
index 966125162ef6..e6ab5367792b 100644
--- a/server/src/api/sdn/controllers.rs
+++ b/server/src/api/sdn/controllers.rs
@@ -94,7 +94,7 @@ pub async fn list_controllers(
         None
     });
 
-    let mut vnets = Vec::new();
+    let mut controllers = Vec::new();
     let fetcher = ParallelFetcher::new((pending, running, ty));
 
     let results = fetcher
@@ -111,14 +111,14 @@ pub async fn list_controllers(
                 for (node, node_result) in remote_result.node_results.into_iter() {
                     match node_result {
                         Ok(NodeResults { data, .. }) => {
-                            vnets.extend(data.into_iter().map(|controller| ListController {
+                            controllers.extend(data.into_iter().map(|controller| ListController {
                                 remote: remote.clone(),
                                 controller,
                             }))
                         }
                         Err(error) => {
                             log::error!(
-                                "could not fetch vnets from remote {} node {}: {error:#}",
+                                "could not fetch controllers from remote {} node {}: {error:#}",
                                 remote,
                                 node
                             );
@@ -127,10 +127,13 @@ pub async fn list_controllers(
                 }
             }
             Err(error) => {
-                log::error!("could not fetch vnets from remote {}: {error:#}", remote)
+                log::error!(
+                    "could not fetch controllers from remote {}: {error:#}",
+                    remote
+                )
             }
         }
     }
 
-    Ok(vnets)
+    Ok(controllers)
 }
-- 
2.47.3





More information about the pdm-devel mailing list