Skip to content

Commit cf90e77

Browse files
author
droberts2013
committed
Set status line
1 parent a911480 commit cf90e77

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/ansibletower/launchAndWait.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ def formatted_print(message):
7474

7575
formatted_print(">>> %s launched with job id %s" % (message_text.capitalize(), str(job_id)))
7676

77+
task.setStatusLine("Job id %s launched" % job_id)
7778
task.schedule("ansibletower/launchAndWait.wait_for_completion.py", int(wait_interval))

src/ansibletower/launchAndWait.wait_for_completion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def formatted_print(message):
5050
result = json.loads(response.response)
5151
status=result['status']
5252
print status
53+
task.setStatusLine("Job id %s %s" % (job_id, status))
5354
if status in ["running","pending","waiting"]:
5455
num_tries += 1
5556
if max_retries:

0 commit comments

Comments
 (0)