From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id F06271FF183 for ; Wed, 17 Dec 2025 09:52:19 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CA3A921BF0; Wed, 17 Dec 2025 09:53:06 +0100 (CET) From: Shannon Sterz To: pdm-devel@lists.proxmox.com Date: Wed, 17 Dec 2025 09:52:31 +0100 Message-ID: <20251217085231.57857-1-s.sterz@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1765961543178 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.090 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [main.rs, report.rs] Subject: [pdm-devel] [PATCH datacenter-manager] cli: admin: rename support-eligibility to support-status X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" since that is shorter and easier to spell. Suggested-by: Lukas Wagner Suggested-by: Maximiliano Sandoval Signed-off-by: Shannon Sterz --- 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