File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -137,24 +137,6 @@ class ContainerInfo:
137137 env : Optional [List [EnvVar ]] = None
138138 volume_mounts : Optional [List [VolumeMount ]] = None
139139
140- @classmethod
141- def from_container (cls , name : str , container : Container ) -> 'ContainerInfo' :
142- """Create a ContainerInfo from a Container and a name.
143-
144- :param name: Name of the container
145- :param container: Container specification
146- :return: ContainerInfo instance
147- """
148- return cls (
149- name = name ,
150- image = container .image ,
151- exposed_port = container .exposed_port ,
152- healthcheck = container .healthcheck ,
153- entrypoint_overrides = container .entrypoint_overrides ,
154- env = container .env ,
155- volume_mounts = container .volume_mounts
156- )
157-
158140
159141@dataclass_json
160142@dataclass
You can’t perform that action at this time.
0 commit comments