Skip to content

Commit ab7c7e1

Browse files
committed
[OMCProcessDockerHelper] add get_docker_container_id()
1 parent 73b7448 commit ab7c7e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

OMPython/OMCSession.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,12 @@ def serverAdress(self) -> Optional[str]:
649649

650650
return None
651651

652+
def get_docker_container_id(self) -> str:
653+
if not isinstance(self._dockerCid, str):
654+
raise OMCSessionException(f"Invalid docker container ID: {self._dockerCid}!")
655+
656+
return self._dockerCid
657+
652658

653659
class OMCProcessDocker(OMCProcess, OMCProcessDockerHelper):
654660

0 commit comments

Comments
 (0)