Fix missing import

This commit is contained in:
AaronDewes 2022-06-10 09:13:25 +00:00
parent 40684f7542
commit ed51529728

View File

@ -55,9 +55,9 @@ def getFreePort(networkingFile: str, appId: str):
return port
def assignIpV4(appId: str, containerName: str):
scriptDir = os.path.dirname(os.path.realpath(__file__))
nodeRoot = os.path.join(scriptDir, "..", "..", "..", "..")
networkingFile = os.path.join(nodeRoot, "apps", "networking.json")
scriptDir = path.dirname(path.realpath(__file__))
nodeRoot = path.join(scriptDir, "..", "..", "..", "..")
networkingFile = path.join(nodeRoot, "apps", "networking.json")
cleanContainerName = containerName.strip()
# If the name still contains a newline, throw an error
if cleanContainerName.find("\n") != -1: