From: Yan, Zheng Date: Tue, 21 Apr 2015 03:30:12 +0000 (+0800) Subject: task/samba: ignore return code of fuser/losf X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0cbc4d0ab45f40c9804732ebd19be8d60168b331;p=ceph.git task/samba: ignore return code of fuser/losf if mount point is not used by anyone, both fuser and losf return 1 Fixes: #10624 Signed-off-by: Yan, Zheng (cherry picked from commit c049387b7b0832e78a4a1370691798f726985799) --- diff --git a/tasks/samba.py b/tasks/samba.py index 7a2abfb9be3..d79bb2a05e9 100644 --- a/tasks/samba.py +++ b/tasks/samba.py @@ -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")