mirror of
https://github.com/runcitadel/core.git
synced 2024-11-11 16:30:38 +00:00
Fix logic bug
This commit is contained in:
parent
ab8b83101c
commit
98a16c4d6e
|
@ -103,7 +103,7 @@ def validatePort(appContainer, port, appId, priority: int, isDynamic = False):
|
|||
"dynamic": isDynamic,
|
||||
}
|
||||
else:
|
||||
if port in citadelPorts or (appPorts[port]["app"] != appId and appPorts[port]["container"] != appContainer["name"]):
|
||||
if port in citadelPorts or appPorts[port]["app"] != appId or appPorts[port]["container"] != appContainer["name"]:
|
||||
newPort = getNewPort(appPorts.keys())
|
||||
if port in appPorts and priority > appPorts[port]["priority"]:
|
||||
#print("Prioritizing app {} over {}".format(appId, appPorts[port]["app"]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user