From: John Mulligan Date: Sat, 9 Mar 2024 16:35:46 +0000 (-0500) Subject: cephadm: black format container_types.py X-Git-Tag: v19.1.0~165^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c17f767cf57651a39d11dddc8830b10a5334cb62;p=ceph.git cephadm: black format container_types.py Signed-off-by: John Mulligan (cherry picked from commit 275b44df1a41708622a736f89c22abf29bc0a558) --- diff --git a/src/cephadm/cephadmlib/container_types.py b/src/cephadm/cephadmlib/container_types.py index 2af16eb47504..01fbb41d2392 100644 --- a/src/cephadm/cephadmlib/container_types.py +++ b/src/cephadm/cephadmlib/container_types.py @@ -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