From 2912c1f34f1dd009d374228363ce343fcf5fbb3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 23 Mar 2022 09:30:21 +0100 Subject: [PATCH] Trying to improve maintenance warning Based on a suggesstion of Co-Author: Jan Zerebecki --- osc/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osc/core.py b/osc/core.py index 36866f3f..365fa7d5 100644 --- a/osc/core.py +++ b/osc/core.py @@ -4302,9 +4302,9 @@ def create_submit_request(apiurl, r = root.get('id') except HTTPError as e: if e.hdrs.get('X-Opensuse-Errorcode') == "submit_request_rejected": - print("WARNING:") - print("WARNING: Project does not accept submit request, a NEW maintenance incident request will be created instead") - print("WARNING:") + print('WARNING: As the project is in maintenance, a maintenance incident request is') + print('WARNING: being created (instead of a regular submit request). If this is not your') + print('WARNING: intention please revoke it to avoid unnecessary work for all involved parties.') xpath = 'maintenance/maintains/@project = \'%s\' and attribute/@name = \'%s\'' % (dst_project, conf.config['maintenance_attribute']) res = search(apiurl, project_id=xpath) root = res['project_id']