all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH datacenter-manager] api: remotes: fix create and update method descriptions
@ 2026-06-22  6:17 Christoph Heiss
  2026-06-22 18:13 ` applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Heiss @ 2026-06-22  6:17 UTC (permalink / raw)
  To: pdm-devel

Give them fitting descriptions instead of the copy-pasted one from the
list endpoint.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
 server/src/api/remotes/mod.rs | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/server/src/api/remotes/mod.rs b/server/src/api/remotes/mod.rs
index e416f619..06189f7d 100644
--- a/server/src/api/remotes/mod.rs
+++ b/server/src/api/remotes/mod.rs
@@ -263,7 +263,11 @@ const CREATE_TOKEN_SCHEMA: Schema = pdm_api_types::PROXMOX_TOKEN_NAME_SCHEMA
         permission: &Permission::Privilege(&["resource"], PRIV_RESOURCE_MODIFY, false),
     },
 )]
-/// List all the remotes this instance is managing.
+/// Add a new remote to manage.
+///
+/// If `create-token` is specified, a new API token is generated on the target
+/// remote with the given name and used instead of the existing authentication
+/// details in the entry.
 pub async fn add_remote(mut entry: Remote, create_token: Option<String>) -> Result<(), Error> {
     let _lock = pdm_config::remotes::lock_config()?;
     let (mut remotes, _) = pdm_config::remotes::config()?;
@@ -388,7 +392,7 @@ pub enum DeletableProperty {
         permission: &Permission::Privilege(&["resource", "{id}"], PRIV_RESOURCE_MODIFY, false),
     },
 )]
-/// List all the remotes this instance is managing.
+/// Update an existing managed remote.
 pub fn update_remote(
     id: String,
     updater: RemoteUpdater,
-- 
2.54.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-22 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-22  6:17 [PATCH datacenter-manager] api: remotes: fix create and update method descriptions Christoph Heiss
2026-06-22 18:13 ` applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal