endpoints.trigger: activate: ret private config
This commit is contained in:
parent
2a13eade80
commit
852aa33101
2 changed files with 8 additions and 4 deletions
|
@ -217,8 +217,12 @@ class BuildTriggerActivate(RepositoryParamResource):
|
|||
'$token', write_token.code,
|
||||
app.config['SERVER_HOSTNAME'], path)
|
||||
|
||||
final_config, trigger.private_key = handler.activate(trigger.uuid, authed_url,
|
||||
final_config, private_config = handler.activate(trigger.uuid, authed_url,
|
||||
trigger.auth_token, new_config_dict)
|
||||
|
||||
if 'private_key' in private_config:
|
||||
trigger.private_key = private_config['private_key']
|
||||
|
||||
except TriggerActivationException as exc:
|
||||
write_token.delete_instance()
|
||||
raise request_error(message=exc.message)
|
||||
|
|
Reference in a new issue