File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -666,11 +666,13 @@ def _omc_command_get(self, omc_path_and_args_list) -> list:
666
666
667
667
if self ._docker :
668
668
if sys .platform == "win32" :
669
- if self . _interactivePort is not None and isinstance (self ._interactivePort , int ):
669
+ if isinstance (self ._interactivePort , str ):
670
670
p = int (self ._interactivePort )
671
- dockerNetworkStr = ["-p" , "127.0.0.1:%d:%d" % (p , p )]
671
+ elif isinstance (self ._interactivePort , int ):
672
+ p = self ._interactivePort
672
673
else :
673
674
raise OMCSessionException ("Missing or invalid interactive port!" )
675
+ dockerNetworkStr = ["-p" , "127.0.0.1:%d:%d" % (p , p )]
674
676
elif self ._dockerNetwork == "host" or self ._dockerNetwork is None :
675
677
dockerNetworkStr = ["--network=host" ]
676
678
elif self ._dockerNetwork == "separate" :
You can’t perform that action at this time.
0 commit comments