]> git.proxmox.com Git - pve-storage.git/commit
cephconfig: change code style inside config writer
authorMax Carrara <m.carrara@proxmox.com>
Tue, 2 Apr 2024 14:55:13 +0000 (16:55 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 11 Apr 2024 09:53:37 +0000 (11:53 +0200)
commite8dbfc506c9a74256df2cb2e6ad7bcbc647ea183
tree7822276a518a6229252c2b9405fcb9455e1f4d39
parent10facd3793f1daf46c0763666a7a986b2588c3d1
cephconfig: change code style inside config writer

This commit changes the code style of subroutine `write_ceph_config`
to match our style guide [0] more.

Furthermore, the repeated calls to the inner subroutine are replaced
with a loop, while the regular expressions used by the inner `sub` are
now quoted with `qr` to prevent any accidental mis-quotings in the
future.

[0]: https://pve.proxmox.com/wiki/Perl_Style_Guide

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
src/PVE/CephConfig.pm