]> 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>
Mon, 4 Apr 2022 07:33:23 +0000 (09:33 +0200)
commit023a3001f23851782bb24dd9ff7fc29bab0c641c
tree9fd3110589cacd9cecb390e52b8d7afa03221bc5
parenta5baefea2bbbab2aeaf9bc7acf8f405cc891c4b0
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