]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: rename import from cd to _cephadm
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 27 Sep 2022 18:50:24 +0000 (14:50 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 27 Sep 2022 18:53:34 +0000 (14:53 -0400)
The `cd` name is an abbreviation of an obsolete name for cephadm.
As this is not widely known it could be confusing or conflict with
other common terms like `cd` for "change dir" or "compact disc".
Therefore we rename it to something much clearer.

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

index ffe8ff6fc7a33d67e236c23c16741e12201687c2..1ea419fb3c0e08272e3955e5ce5ff6e7df78161d 100644 (file)
@@ -3,12 +3,12 @@ import pytest
 from unittest import mock
 from tests.fixtures import host_sysfs, import_cephadm
 
-cd = import_cephadm()
+_cephadm = import_cephadm()
 
 
 @pytest.fixture
 def enclosure(host_sysfs):
-    e = cd.Enclosure(
+    e = _cephadm.Enclosure(
         enc_id='1',
         enc_path='/sys/class/scsi_generic/sg2/device/enclosure/0:0:1:0',
         dev_path='/sys/class/scsi_generic/sg2')