Skip to content

Commit

Permalink
Eliminate repetitive job output again
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts2013 committed Jun 22, 2023
1 parent 1718493 commit e494501
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
defaultTasks 'build'
apply plugin: 'java'

version='1.1.6'
version='1.1.7'
sourceSets.main.resources.srcDirs = ["src"]

license {
Expand Down
10 changes: 5 additions & 5 deletions src/ansibletower/launchAndWait.wait_for_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def formatted_print(message):
formatted_print(job_output)
raise Exception("Error: maximum number of tries reached")
task.schedule("ansibletower/launchAndWait.wait_for_completion.py", int(wait_interval))
else:
job_output=request.get(api_url+'stdout/', contentType='text/plain',headers=headers).response
formatted_print(job_output)
result = job_output
else:
formatted_print(">>> Task failed after " + str(num_tries) + " tries.")
formatted_print(">>> Task failed after " + str(num_tries) + " tries. Job status was not retrieved.")
raise Exception("Failed: Server return [%s], with content [%s]" % (response.status, response.response))

job_output=request.get(api_url+'stdout/', contentType='text/plain',headers=headers).response
formatted_print(job_output)
result= job_output
2 changes: 1 addition & 1 deletion src/plugin-version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
#SOFTWARE.

plugin=xlr-ansible-automation-controller-plugin
version=1.1.6
version=1.1.7

0 comments on commit e494501

Please sign in to comment.