]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: lazily import cephadm in fixtures.py
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 26 Sep 2022 19:30:25 +0000 (15:30 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 27 Sep 2022 18:42:13 +0000 (14:42 -0400)
commitfb8120d510fcd26ae7779b173aff25b576abad23
tree4b91c9ef2cafd08cbd0c31fa4092bfc47c36b71e
parentbf963d5ac41274b8a612abd22c0516d5db9d9a37
cephadm: lazily import cephadm in fixtures.py

We can avoid creating side-effects in the cephadm module by only importing
the module in the functions that are meant to generate side effects.
Simply importing fixtures and not calling any of the functions now can
not change cephadm by accident.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/tests/fixtures.py