From 1a3bb7b9c80849e25349a8f117c9646691ce40d0 Mon Sep 17 00:00:00 2001 From: Andrey Grinenko Date: Thu, 27 Jan 2022 17:03:39 +0100 Subject: [PATCH] update release status once desired state is reached --- src/main/resources/xlr/WaitForReleaseStatus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/xlr/WaitForReleaseStatus.py b/src/main/resources/xlr/WaitForReleaseStatus.py index 636737b..7a00b05 100644 --- a/src/main/resources/xlr/WaitForReleaseStatus.py +++ b/src/main/resources/xlr/WaitForReleaseStatus.py @@ -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')