]> 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>
Tue, 15 Feb 2022 14:54:07 +0000 (15:54 +0100)
commitf0f1dd986aab8b32fad55a8885faf5ed7ef66e06
tree3dc903d69f250d9770429544562b17d5cbda10ca
parent94e51d5c14719fa08477a8df1c5cf05d359b5ab5
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>
library/ceph_pool.py