]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
task/samba: ignore return code of fuser/losf
authorYan, Zheng <zyan@redhat.com>
Tue, 21 Apr 2015 03:30:12 +0000 (11:30 +0800)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 27 Oct 2015 21:44:07 +0000 (14:44 -0700)
if mount point is not used by anyone, both fuser and losf return 1

Fixes: #10624
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit c049387b7b0832e78a4a1370691798f726985799)

tasks/samba.py

index 7a2abfb9be3e9cdf655d0882e7e69e1a4746bdd0..d79bb2a05e9c1aaea43010ca4864c63a4a122fea 100644 (file)
@@ -227,6 +227,7 @@ def task(ctx, config):
                         'lsof',
                         backend,
                         ],
+                    check_status=False
                     )
                 remote.run(
                     args=[
@@ -235,6 +236,7 @@ def task(ctx, config):
                         '-M',
                         backend,
                         ],
+                    check_status=False
                     )
             except Exception:
                 log.exception("Saw exception")