propagate return value from decorator
e.g. this allows writing code like:
def ripgrep(**kwargs):
return apt.packages('ripgrep', **kwargs)
res = ripgrep()
if res.changed:
# do something else
@@ -139,6 +139,6 @@ def deploy(func_or_name, data_defaults=None):
data=deploy_data,
deploy_op_order=deploy_op_order,
):
- func(*args, **kwargs)
+ return func(*args, **kwargs)
return decorated_func
