]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common: 'ssd/nvme' -> 'ssd'
authorSage Weil <sage@redhat.com>
Mon, 16 Dec 2019 18:54:37 +0000 (12:54 -0600)
committerSage Weil <sage@redhat.com>
Mon, 16 Dec 2019 18:58:24 +0000 (12:58 -0600)
NVMe's are generally 'solid state disks'.  More importantly, NVMe is an
interface, not a device type, and there is talk of HDDs with NVMe
interfaces.

But mostly this is just makes for a more compact table.

Signed-off-by: Sage Weil <sage@redhat.com>
src/python-common/ceph/deployment/inventory.py

index 5edd27c4be7bd733ac20898108640b0372329ae6..22109c567fc56a00b65b8ba27b36470a69ab28c9 100644 (file)
@@ -82,4 +82,4 @@ class Device(object):
         # type: () -> str
         if self.sys_api is None or 'rotational' not in self.sys_api:
             return "unknown"
-        return 'hdd' if self.sys_api["rotational"] == "1" else 'ssd/nvme'
+        return 'hdd' if self.sys_api["rotational"] == "1" else 'ssd'