all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Shannon Sterz <s.sterz@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager] cli: admin: rename support-eligibility to support-status
Date: Wed, 17 Dec 2025 09:52:31 +0100	[thread overview]
Message-ID: <20251217085231.57857-1-s.sterz@proxmox.com> (raw)

since that is shorter and easier to spell.

Suggested-by: Lukas Wagner <l.wagner@proxmox.com>
Suggested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 cli/admin/src/main.rs                             |  4 ++--
 .../{support_eligibility.rs => support_status.rs} | 15 ++++++---------
 server/src/report.rs                              |  2 +-
 3 files changed, 9 insertions(+), 12 deletions(-)
 rename cli/admin/src/{support_eligibility.rs => support_status.rs} (79%)

diff --git a/cli/admin/src/main.rs b/cli/admin/src/main.rs
index f4cbc80..f698fa2 100644
--- a/cli/admin/src/main.rs
+++ b/cli/admin/src/main.rs
@@ -9,7 +9,7 @@ use proxmox_router::RpcEnvironment;
 use proxmox_schema::api;
 
 mod remotes;
-mod support_eligibility;
+mod support_status;
 
 fn main() {
     //pbs_tools::setup_libc_malloc_opts(); // TODO: move from PBS to proxmox-sys and uncomment
@@ -37,7 +37,7 @@ fn main() {
             "report",
             CliCommand::new(&API_METHOD_GENERATE_SYSTEM_REPORT),
         )
-        .insert("support-eligibility", support_eligibility::cli())
+        .insert("support-status", support_status::cli())
         .insert("versions", CliCommand::new(&API_METHOD_GET_VERSIONS));
 
     let mut rpcenv = CliEnvironment::new();
diff --git a/cli/admin/src/support_eligibility.rs b/cli/admin/src/support_status.rs
similarity index 79%
rename from cli/admin/src/support_eligibility.rs
rename to cli/admin/src/support_status.rs
index 0f2cfca..89ccf6e 100644
--- a/cli/admin/src/support_eligibility.rs
+++ b/cli/admin/src/support_status.rs
@@ -9,17 +9,14 @@ use proxmox_schema::api;
 
 pub fn cli() -> CommandLineInterface {
     CliCommandMap::new()
-        .insert("get", CliCommand::new(&API_METHOD_SUPPORT_ELIGIBILITY))
-        .insert(
-            "update",
-            CliCommand::new(&API_METHOD_UPDATE_SUPPORT_ELIGIBILITY),
-        )
+        .insert("get", CliCommand::new(&API_METHOD_SUPPORT_STATUS))
+        .insert("update", CliCommand::new(&API_METHOD_UPDATE_SUPPORT_STATUS))
         .into()
 }
 
 #[api]
-/// Get the support eligibility information.
-async fn support_eligibility(
+/// Get the support status information.
+async fn support_status(
     param: Value,
     rpcenv: &mut dyn RpcEnvironment,
 ) -> Result<(), anyhow::Error> {
@@ -42,8 +39,8 @@ async fn support_eligibility(
 }
 
 #[api]
-/// Update the support eligibility information.
-async fn update_support_eligibility(
+/// Update the support status information.
+async fn update_support_status(
     param: Value,
     rpcenv: &mut dyn RpcEnvironment,
 ) -> Result<(), anyhow::Error> {
diff --git a/server/src/report.rs b/server/src/report.rs
index 9a52cd8..9da6b42 100644
--- a/server/src/report.rs
+++ b/server/src/report.rs
@@ -61,7 +61,7 @@ fn commands() -> Vec<(&'static str, Vec<&'static str>)> {
         ),
         (
             "proxmox-datacenter-manager-admin",
-            vec!["support-eligibility", "get"],
+            vec!["support-status", "get"],
         ),
         ("proxmox-boot-tool", vec!["status"]),
         ("df", vec!["-h", "-T"]),
-- 
2.47.3



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


             reply	other threads:[~2025-12-17  8:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-17  8:52 Shannon Sterz [this message]
2025-12-17 15:01 ` [pdm-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251217085231.57857-1-s.sterz@proxmox.com \
    --to=s.sterz@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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