From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id CD82E91C7A for ; Mon, 20 Mar 2023 11:33:04 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id ADE76270C for ; Mon, 20 Mar 2023 11:32:34 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Mon, 20 Mar 2023 11:32:34 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id A4327459A0 for ; Mon, 20 Mar 2023 11:32:33 +0100 (CET) From: Aaron Lauterer To: pve-devel@lists.proxmox.com Date: Mon, 20 Mar 2023 11:32:32 +0100 Message-Id: <20230320103232.668916-3-a.lauterer@proxmox.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230320103232.668916-1-a.lauterer@proxmox.com> References: <20230320103232.668916-1-a.lauterer@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.041 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% 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 Subject: [pve-devel] [PATCH v2 manager 3/3] pveceph: adapt to new Pool module X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2023 10:33:04 -0000 The API::Ceph::Pools module is deprecated. Use the new API::Ceph::Pool (singular) module. Signed-off-by: Aaron Lauterer --- this patch has been added since v1 to also adapt the pveceph CLI tool to the new module. Since all the methods kept their name and only the API paths changed, there is not much to change except the module name PVE/CLI/pveceph.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PVE/CLI/pveceph.pm b/PVE/CLI/pveceph.pm index afcc67e0..52c91629 100755 --- a/PVE/CLI/pveceph.pm +++ b/PVE/CLI/pveceph.pm @@ -355,7 +355,7 @@ __PACKAGE__->register_method ({ our $cmddef = { init => [ 'PVE::API2::Ceph', 'init', [], { node => $nodename } ], pool => { - ls => [ 'PVE::API2::Ceph::Pools', 'lspools', [], { node => $nodename }, sub { + ls => [ 'PVE::API2::Ceph::Pool', 'lspools', [], { node => $nodename }, sub { my ($data, $schema, $options) = @_; PVE::CLIFormatter::print_api_result($data, $schema, [ @@ -374,10 +374,10 @@ our $cmddef = { ], $options); }, $PVE::RESTHandler::standard_output_options], - create => [ 'PVE::API2::Ceph::Pools', 'createpool', ['name'], { node => $nodename }], - destroy => [ 'PVE::API2::Ceph::Pools', 'destroypool', ['name'], { node => $nodename } ], - set => [ 'PVE::API2::Ceph::Pools', 'setpool', ['name'], { node => $nodename } ], - get => [ 'PVE::API2::Ceph::Pools', 'getpool', ['name'], { node => $nodename }, sub { + create => [ 'PVE::API2::Ceph::Pool', 'createpool', ['name'], { node => $nodename }], + destroy => [ 'PVE::API2::Ceph::Pool', 'destroypool', ['name'], { node => $nodename } ], + set => [ 'PVE::API2::Ceph::Pool', 'setpool', ['name'], { node => $nodename } ], + get => [ 'PVE::API2::Ceph::Pool', 'getpool', ['name'], { node => $nodename }, sub { my ($data, $schema, $options) = @_; PVE::CLIFormatter::print_api_result($data, $schema, undef, $options); }, $PVE::RESTHandler::standard_output_options], -- 2.30.2