[pdm-devel] [PATCH datacenter-manager 1/2] server: api: pbs: rename 'list_snapshots_2' to 'list_snapshots'
Dominik Csapak
d.csapak at proxmox.com
Fri Dec 5 12:04:53 CET 2025
no functional change intended, just cosmetic
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
server/src/api/pbs/mod.rs | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/server/src/api/pbs/mod.rs b/server/src/api/pbs/mod.rs
index badefc39..e44a0adf 100644
--- a/server/src/api/pbs/mod.rs
+++ b/server/src/api/pbs/mod.rs
@@ -69,10 +69,7 @@ const DATASTORE_ITEM_SUBDIRS: SubdirMap = &sorted!([
"namespaces",
&Router::new().get(&API_METHOD_LIST_NAMESPACES)
),
- (
- "snapshots",
- &Router::new().get(&API_METHOD_LIST_SNAPSHOTS_2)
- ),
+ ("snapshots", &Router::new().get(&API_METHOD_LIST_SNAPSHOTS)),
]);
// converts a remote + pbs_api_types::UPID into a RemoteUpid and starts tracking it
@@ -178,7 +175,7 @@ async fn list_namespaces(
},
)]
/// List the PBS remote's datastores.
-async fn list_snapshots_2(
+async fn list_snapshots(
remote: String,
datastore: String,
ns: Option<String>,
--
2.47.3
More information about the pdm-devel
mailing list