Bug 1303556: ensure owner is always an email address; r?jonasfj
MozReview-Commit-ID: HPRQS9lYjhI
--- a/taskcluster/taskgraph/decision.py
+++ b/taskcluster/taskgraph/decision.py
@@ -115,16 +115,21 @@ def get_decision_parameters(options):
'pushlog_id',
'pushdate',
'owner',
'level',
'triggered_by',
'target_tasks_method',
] if n in options}
+ # owner must be an email, but sometimes (e.g., for ffxbld) it is not, in which
+ # case, fake it
+ if '@' not in parameters['owner']:
+ parameters['owner'] += '@noreply.mozilla.org'
+
project = parameters['project']
try:
parameters.update(PER_PROJECT_PARAMETERS[project])
except KeyError:
logger.warning("using default project parameters; add {} to "
"PER_PROJECT_PARAMETERS in {} to customize behavior "
"for this project".format(project, __file__))
parameters.update(PER_PROJECT_PARAMETERS['default'])