Skip to content

Commit

Permalink
update release status once desired state is reached
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyxebialabs committed Jan 27, 2022
1 parent 3bccb73 commit 1a3bb7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/xlr/WaitForReleaseStatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

targetRelease = xlr.get_release(releaseApi, targetId)
status = str(targetRelease.getStatus())
task.setStatusLine('Release is %s' % status.lower().replace('_', ' '))
if status in accepted_statuses:
targetStatus = status
else:
# continue polling
task.setStatusLine('Release is %s' % status.lower().replace('_', ' '))
task.schedule('xlr/WaitForReleaseStatus.py')

0 comments on commit 1a3bb7b

Please sign in to comment.