diff options
Diffstat (limited to '')
-rwxr-xr-x | src/cli/nomad_allocs.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cli/nomad_allocs.py b/src/cli/nomad_allocs.py index f2369bb..868fea9 100755 --- a/src/cli/nomad_allocs.py +++ b/src/cli/nomad_allocs.py @@ -28,13 +28,9 @@ def cli(job, dc, token): for task in resp.json(): task_name = list(task["TaskStates"].keys())[0] if task["TaskStates"][task_name]["State"] == "running": - running_tasks.append( - f"https://{dc}-nomad.simulprod.com/ui/allocations/{task['ID']}/{task_name}/logs" - ) + running_tasks.append(f"https://{dc}-nomad.simulprod.com/ui/allocations/{task['ID']}/{task_name}/logs") else: - terminated_tasks.append( - f"https://{dc}-nomad.simulprod.com/ui/allocations/{task['ID']}/{task_name}/logs" - ) + terminated_tasks.append(f"https://{dc}-nomad.simulprod.com/ui/allocations/{task['ID']}/{task_name}/logs") if len(running_tasks) > 0: print("running tasks") |