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 90BF99FCA for ; Thu, 7 Sep 2023 11:50:19 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 798FB4D05 for ; Thu, 7 Sep 2023 11:49:49 +0200 (CEST) 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 ; Thu, 7 Sep 2023 11:49:48 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 3EF4142E63 for ; Thu, 7 Sep 2023 11:49:48 +0200 (CEST) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Date: Thu, 7 Sep 2023 11:49:42 +0200 Message-Id: <20230907094942.74479-2-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230907094942.74479-1-m.sandoval@proxmox.com> References: <20230907094942.74479-1-m.sandoval@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.003 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 Subject: [pve-devel] [PATCH manager 2/2] ceph: api: use snake_case when setting options 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: Thu, 07 Sep 2023 09:50:19 -0000 Continuation of ab70343982f36a5343d3fcf4a1a6489bd3f52a66. Discussion at https://lists.proxmox.com/pipermail/pve-devel/2023-September/059013.html. Signed-off-by: Maximiliano Sandoval --- PVE/API2/Ceph.pm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm index a4101dee..afc9b9e2 100644 --- a/PVE/API2/Ceph.pm +++ b/PVE/API2/Ceph.pm @@ -197,12 +197,12 @@ __PACKAGE__->register_method ({ $cfg->{global} = { 'fsid' => $fsid, - 'auth cluster required' => $auth, - 'auth service required' => $auth, - 'auth client required' => $auth, - 'osd pool default size' => $param->{size} // 3, - 'osd pool default min size' => $param->{min_size} // 2, - 'mon allow pool delete' => 'true', + 'auth_cluster_required' => $auth, + 'auth_service_required' => $auth, + 'auth_client_required' => $auth, + 'osd_pool_default_size' => $param->{size} // 3, + 'osd_pool_default_min_size' => $param->{min_size} // 2, + 'mon_allow_pool_delete' => 'true', }; # this does not work for default pools @@ -215,12 +215,12 @@ __PACKAGE__->register_method ({ } if ($param->{network}) { - $cfg->{global}->{'public network'} = $param->{network}; - $cfg->{global}->{'cluster network'} = $param->{network}; + $cfg->{global}->{'public_network'} = $param->{network}; + $cfg->{global}->{'cluster_network'} = $param->{network}; } if ($param->{'cluster-network'}) { - $cfg->{global}->{'cluster network'} = $param->{'cluster-network'}; + $cfg->{global}->{'cluster_network'} = $param->{'cluster-network'}; } cfs_write_file('ceph.conf', $cfg); -- 2.39.2