From 7d861aad761452971ce0224d6fc04c44ed3821b7 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 28 Aug 2024 02:57:25 +0100 Subject: [PATCH] fixes --- src/command/impl/addSubPathCommand.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/command/impl/addSubPathCommand.py b/src/command/impl/addSubPathCommand.py index b9eac73..2f49bee 100644 --- a/src/command/impl/addSubPathCommand.py +++ b/src/command/impl/addSubPathCommand.py @@ -14,15 +14,14 @@ class AddSubPathCommand(Command): router = args[0] domain = args[1] path = args[2] - serviceHost = args[3] - subPathName = "strip-" + router + "-" + path + "-prefix" - # Fix the path if path.startswith("/") == False: path = "/" + path + serviceHost = args[3] + subPathName = domain + path if traefikConfig.hasPathRewrite(subPathName): - print(f"Sub path for \"{router}\" already exists") + print(f"Sub path for \"{domain}{path}\" already exists") return if traefikConfig.hasRouter(router) == False: