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:
commit
2f52a8da22
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user