From: Alfredo Deza Date: Fri, 4 Aug 2017 14:04:04 +0000 (-0400) Subject: ceph-volume: decorators should call the wrapped func X-Git-Tag: v12.1.3~102^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b189e0167f1c2e14e086313341335905aa303c34;p=ceph-ci.git ceph-volume: decorators should call the wrapped func Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/decorators.py b/src/ceph-volume/ceph_volume/decorators.py index d8bea58fe92..c1e14bc7908 100644 --- a/src/ceph-volume/ceph_volume/decorators.py +++ b/src/ceph-volume/ceph_volume/decorators.py @@ -13,7 +13,7 @@ def needs_root(func): def is_root(*a, **kw): if not os.getuid() == 0: raise exceptions.SuperUserError() - return func + return func(*a, **kw) return is_root