NET-WP-0019: fix arg parsing in orchestrator for --cleanup-only early, fix delegate path in console cleanup command.
This commit is contained in:
parent
33cab7be4e
commit
23af9b0a84
2 changed files with 20 additions and 13 deletions
|
|
@ -4825,7 +4825,8 @@ def main(argv: list[str] | None = None) -> int:
|
|||
pat = getattr(args, "pattern", "t06-*") if hasattr(args, "pattern") else "t06-*"
|
||||
print("Delegating cleanup for pattern", pat, "to orchestrator...")
|
||||
import subprocess, os
|
||||
script = "sso-mfa/k8s/lldap/dry-run-nonroot-user.sh"
|
||||
script = os.path.join(os.path.dirname(__file__), "..", "..", "sso-mfa", "k8s", "lldap", "dry-run-nonroot-user.sh")
|
||||
script = os.path.abspath(script)
|
||||
subprocess.call(["bash", script, "--cleanup-only", pat])
|
||||
return 0
|
||||
if args.command == "handover-checklist":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue