]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
library/ceph_pool: Fix potential null value when creating pools
authorMathias Chapelain <mathias.chapelain@proton.ch>
Fri, 11 Feb 2022 14:11:22 +0000 (15:11 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 13 Apr 2022 22:35:13 +0000 (00:35 +0200)
commit36248edc1fc3ae00c29c040f16ee83627d01f50f
treec204a54b3820a38123da189398d9e9ab277f1b0d
parentdf8674a1c58454d159861d1d9a980bcc38c2cfa8
library/ceph_pool: Fix potential null value when creating pools

Before, creating a pool by providing *only* `pg_num` would result in an
error as it would produce `--pgp-num null`.

This commit fix this behavior by defaulting `pgp_num` value to `pg_num`.

Signed-off-by: Mathias Chapelain <mathias.chapelain@proton.ch>
(cherry picked from commit f0f1dd986aab8b32fad55a8885faf5ed7ef66e06)
library/ceph_pool.py