]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: black format initial decorators.py
authorAdam King <adking@redhat.com>
Fri, 15 Sep 2023 13:48:29 +0000 (09:48 -0400)
committerAdam King <adking@redhat.com>
Sun, 24 Sep 2023 13:44:32 +0000 (09:44 -0400)
Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadmlib/decorators.py

index 73d81d34f334a950e8ed9d5051f3949f6123e11b..7d4a780662164c4b460a4d168593cb916c8bf852 100644 (file)
@@ -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)