From: Adam King Date: Fri, 15 Sep 2023 13:48:29 +0000 (-0400) Subject: cephadm: black format initial decorators.py X-Git-Tag: v19.0.0~416^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F53482%2Fhead;p=ceph.git cephadm: black format initial decorators.py Signed-off-by: Adam King --- diff --git a/src/cephadm/cephadmlib/decorators.py b/src/cephadm/cephadmlib/decorators.py index 73d81d34f334..7d4a78066216 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)