Another fix

This commit is contained in:
AaronDewes 2022-06-08 06:47:03 +00:00
parent 88f344b665
commit 30ed56368f

View File

@ -144,11 +144,11 @@ def validatePort(containerName, appContainer, port, appId, priority: int, isDyna
def getPortsOldApp(app, appId):
for appContainer in app["containers"]:
if "port" in appContainer:
validatePort(appContainer, appContainer["port"], appId, 0)
validatePort(appContainer["name"], appContainer, appContainer["port"], appId, 0)
if "ports" in appContainer:
for port in appContainer["ports"]:
realPort = int(str(port).split(":")[0])
validatePort(appContainer, realPort, appId, 2)
validatePort(appContainer["name"], appContainer, realPort, appId, 2)
def getPortsV3App(app, appId):