]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
library/ceph_crush_rule: module refactor
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Jun 2023 19:00:35 +0000 (21:00 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Mon, 11 Mar 2024 14:48:19 +0000 (15:48 +0100)
commit66e32b895c1e258ae8ac30a68cb625d2dea935e0
tree102c823a83ff093202bb157f0647c18b3c25f1dc
parent310ce9e441736f40691a7b6f4939c08dfc8a63a8
library/ceph_crush_rule: module refactor

This refactor makes the 'name' argument not mandatory because when
'state' is 'info' we shouldn't need to pass it.

The second change is just a duplicate code removal.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit e433d2b955f8a52a869a192f415a1db55269bc72)
library/ceph_crush_rule.py
roles/ceph-facts/tasks/get_def_crush_rule_name.yml