Fix logic bug

This commit is contained in:
AaronDewes 2022-04-07 17:35:24 +00:00
parent ab8b83101c
commit 98a16c4d6e

View File

@ -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"]))