]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: black format container_types.py
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 9 Mar 2024 16:35:46 +0000 (11:35 -0500)
committerAdam King <adking@redhat.com>
Tue, 19 Mar 2024 17:46:58 +0000 (13:46 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 275b44df1a41708622a736f89c22abf29bc0a558)

src/cephadm/cephadmlib/container_types.py

index 2af16eb47504c21211cce33b3ad143b06e3ef04f..01fbb41d2392da3d4493992c89c647e6d500a95d 100644 (file)
@@ -147,13 +147,7 @@ class BasicContainer:
             [],
         )
 
-        return (
-            cmd_args
-            + self.container_args
-            + envs
-            + vols
-            + binds
-        )
+        return cmd_args + self.container_args + envs + vols + binds
 
     def build_run_cmd(self) -> List[str]:
         return (
@@ -190,7 +184,7 @@ class BasicContainer:
         cls,
         other: 'BasicContainer',
         *,
-        ident: Optional[DaemonIdentity] = None
+        ident: Optional[DaemonIdentity] = None,
     ) -> 'BasicContainer':
         return cls(
             other.ctx,
@@ -582,7 +576,6 @@ def extract_uid_gid(
     img: str = '',
     file_path: Union[str, List[str]] = '/var/lib/ceph',
 ) -> Tuple[int, int]:
-
     if not img:
         img = ctx.image