From b189e0167f1c2e14e086313341335905aa303c34 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 4 Aug 2017 10:04:04 -0400 Subject: [PATCH] ceph-volume: decorators should call the wrapped func Signed-off-by: Alfredo Deza --- src/ceph-volume/ceph_volume/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5