mirror of
https://github.com/runcitadel/core.git
synced 2024-09-23 09:40:04 +00:00
Fix missing import
This commit is contained in:
parent
40684f7542
commit
ed51529728
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user