1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

Merge pull request #1017 from adrianschroeter/mr_warning

Trying to improve maintenance warning
This commit is contained in:
Marco Strigl 2022-03-23 10:11:32 +01:00 committed by GitHub
commit 2f52a8da22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']