]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: fix mountpoint check for systemctl enable --runtime
authorNathan Cutler <ncutler@suse.com>
Tue, 19 Sep 2017 11:43:05 +0000 (13:43 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 19 Sep 2017 11:43:05 +0000 (13:43 +0200)
Fixes: https://bugzilla.suse.com/show_bug.cgi?id=1051598
Signed-off-by: Chao Xiong <cxiong@suse.com>
Acked-by: Nathan Cutler <ncutler@suse.com>
src/ceph-disk/ceph_disk/main.py

index 8b0c5dbc38961cc94ac4304e43bc0f7f3a51271c..6482ba7deef10b7d39e2c3964e7a9578fde8b984 100755 (executable)
@@ -3248,7 +3248,7 @@ def systemd_start(
     osd_id,
 ):
     systemd_disable(path, osd_id)
-    if is_mounted(path):
+    if os.path.ismount(path):
         style = ['--runtime']
     else:
         style = []