[pve-devel] [PATCH manager v2 2/2] ceph: api: use snake_case when setting options
Maximiliano Sandoval
m.sandoval at proxmox.com
Fri Sep 22 11:25:26 CEST 2023
Continuation of ab70343982f36a5343d3fcf4a1a6489bd3f52a66. Discussion at
https://lists.proxmox.com/pipermail/pve-devel/2023-September/059013.html.
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
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 fab4637c..81c17d6e 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -208,12 +208,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
@@ -226,12 +226,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
More information about the pve-devel
mailing list