From: Yan, Zheng Date: Tue, 21 Apr 2015 03:30:12 +0000 (+0800) Subject: task/samba: ignore return code of fuser/losf X-Git-Tag: v10.2.6~165^2^2~482^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a26355111ee400d8bb49e565803900db864f1bf0;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 c8768f4bbce..8272e8b9539 100644 --- a/tasks/samba.py +++ b/tasks/samba.py @@ -229,6 +229,7 @@ def task(ctx, config): 'lsof', backend, ], + check_status=False ) remote.run( args=[ @@ -237,6 +238,7 @@ def task(ctx, config): '-M', backend, ], + check_status=False ) except Exception: log.exception("Saw exception")