Skip to content

Commit

Permalink
Fix #18: add displayStepLogs property
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Moussaud committed Apr 27, 2016
1 parent 7ad07a4 commit c80989f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/synthetic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<property name="deployedProperties" category="input" default="" required="false" description="A dictionary with key value pairs" />
<property name="rollbackOnError" category="input" kind="boolean" />
<property name="failOnPause" category="input" kind="boolean" default="true" />

<property name="displayStepLogs" category="input" kind="boolean" default="true" />
</type>

<type type="xldeploy.UndeployTask" extends="xldeploy.TaskRunningTask" description="Executes an undeployment in XL Deploy">
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/xldeploy/deployTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
print "Execute task with id: %s" % taskId
taskState = xldClient.invoke_task_and_wait_for_result(taskId, pollingInterval, numberOfPollingTrials, continueIfStepFails, numberOfContinueRetrials, failOnPause)

xldClient.display_step_logs(taskId)
if displayStepLogs:
print "Display the step logs"
xldClient.display_step_logs(taskId)

if taskState in ('DONE', 'EXECUTED'):
print "Deployment ended in %s \n" % taskState
Expand Down

0 comments on commit c80989f

Please sign in to comment.