mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-23 05:26:16 +01:00
- do_vc: fixed #719754 ("osc vc fails with 'User not found'")
This commit is contained in:
parent
8971959187
commit
34454ac91d
@ -6872,10 +6872,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
user = conf.get_apiurl_usr(apiurl)
|
user = conf.get_apiurl_usr(apiurl)
|
||||||
|
|
||||||
try:
|
data = get_user_data(apiurl, user+'x', 'email')
|
||||||
os.environ['mailaddr'], os.environ['username'] = get_user_data(apiurl, user, 'email', 'realname')
|
if data:
|
||||||
except Exception, e:
|
os.environ['mailaddr'] = data[0]
|
||||||
sys.exit('%s\nget_user_data(email) failed. Try env mailaddr=....\n' % e)
|
else:
|
||||||
|
print >>sys.stderr, 'Try env mailaddr=...'
|
||||||
|
|
||||||
# mailaddr can be overrided by config one
|
# mailaddr can be overrided by config one
|
||||||
if conf.config['api_host_options'][apiurl].has_key('email'):
|
if conf.config['api_host_options'][apiurl].has_key('email'):
|
||||||
|
Loading…
Reference in New Issue
Block a user