Fix arguments propagation to pods
This commit is contained in:
parent
2f8b35f79e
commit
ec77c87515
1 changed files with 4 additions and 1 deletions
|
@ -94,6 +94,9 @@ def setup(args: cli.Args):
|
||||||
model.Project.ensure()
|
model.Project.ensure()
|
||||||
print(f"Reincarnating into pod '{pod[len(podPrefix) :]}'...")
|
print(f"Reincarnating into pod '{pod[len(podPrefix) :]}'...")
|
||||||
try:
|
try:
|
||||||
|
strippedArgsV = list(sys.argv[1])
|
||||||
|
strippedArgsV = [arg for arg in strippedArgsV if not arg.startswith("--pod=")]
|
||||||
|
|
||||||
shell.exec(
|
shell.exec(
|
||||||
"docker",
|
"docker",
|
||||||
"exec",
|
"exec",
|
||||||
|
@ -103,7 +106,7 @@ def setup(args: cli.Args):
|
||||||
pod,
|
pod,
|
||||||
"/tools/cutekit/entrypoint.sh",
|
"/tools/cutekit/entrypoint.sh",
|
||||||
"--reincarnated",
|
"--reincarnated",
|
||||||
*args.args,
|
*strippedArgsV,
|
||||||
)
|
)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Add table
Reference in a new issue