From 4655b6c99b21cdf6622042a78f3bccf7ba5cdbaa Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 20 Nov 2019 09:23:04 +0100 Subject: [PATCH] Fix accept: first comment then cleanup (comments) After accept we want empty comments --- osclib/accept_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osclib/accept_command.py b/osclib/accept_command.py index 1ffd5f5e..b1699adf 100644 --- a/osclib/accept_command.py +++ b/osclib/accept_command.py @@ -100,8 +100,8 @@ class AcceptCommand(object): while self.api.project_status(project, reload=True, requests=False).get('state') != 'empty': time.sleep(1) - self.api.staging_deactivate(project) self.api.accept_status_comment(project, packages) + self.api.staging_deactivate(project) return True