From e91a621ead587d39b5459ae10df77bea159bab96 Mon Sep 17 00:00:00 2001 From: Adam King Date: Fri, 15 Sep 2023 09:48:29 -0400 Subject: [PATCH] cephadm: black format initial decorators.py Signed-off-by: Adam King --- src/cephadm/cephadmlib/decorators.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cephadm/cephadmlib/decorators.py b/src/cephadm/cephadmlib/decorators.py index 73d81d34f33..7d4a7806621 100644 --- a/src/cephadm/cephadmlib/decorators.py +++ b/src/cephadm/cephadmlib/decorators.py @@ -17,10 +17,13 @@ def require_image(func: FuncT) -> FuncT: """ Require the global --image flag to be set """ + @wraps(func) def _require_image(ctx: CephadmContext) -> Any: if not ctx.image: - raise Error('This command requires the global --image option to be set') + raise Error( + 'This command requires the global --image option to be set' + ) return func(ctx) return cast(FuncT, _require_image) -- 2.39.5