Merge "Fixes port acquiring logic in DockerStandaloneHost"
This commit is contained in:
@@ -187,24 +187,25 @@ Methods:
|
|||||||
- $portMap: $.getAttr(portMap, dict())
|
- $portMap: $.getAttr(portMap, dict())
|
||||||
- $applicationPorts: $.getAttr(applicationPorts, dict())
|
- $applicationPorts: $.getAttr(applicationPorts, dict())
|
||||||
- $key: format('{0}-{1}-{2}', $applicationPort.port, $applicationPort.protocol, $applicationName)
|
- $key: format('{0}-{1}-{2}', $applicationPort.port, $applicationPort.protocol, $applicationName)
|
||||||
|
|
||||||
- If: $key in $applicationPorts
|
- If: $key in $applicationPorts
|
||||||
Then:
|
Then:
|
||||||
- Return: $applicationPorts[$key]
|
- Return: $applicationPorts.get($key)
|
||||||
|
|
||||||
- $port: $applicationPort.port
|
- $port: str($applicationPort.port)
|
||||||
- If: $port in $portMap
|
- If: $port in $portMap
|
||||||
Then:
|
Then:
|
||||||
- $port: 1025
|
- $port: '1025'
|
||||||
- While: $port in $portMap
|
- While: $port in $portMap
|
||||||
Do:
|
Do:
|
||||||
$port: $port + 1
|
- $port: str(int($port) + 1)
|
||||||
|
|
||||||
- $portMap[$port]: $applicationName
|
- $portMap[$port]: $applicationName
|
||||||
- $applicationPorts[$key]: $port
|
- $applicationPorts[$key]: $port
|
||||||
|
|
||||||
- $.setAttr(portMap, $portMap)
|
- $.setAttr(portMap, $portMap)
|
||||||
- $.setAttr(applicationPorts, $applicationPorts)
|
- $.setAttr(applicationPorts, $applicationPorts)
|
||||||
- Return: $port
|
- Return: int($port)
|
||||||
|
|
||||||
|
|
||||||
_releaseApplicationPorts:
|
_releaseApplicationPorts:
|
||||||
|
Reference in New Issue
Block a user