| |
@@ -192,15 +192,13 @@
|
| |
raise ValidationError(error)
|
| |
|
| |
assigned_to_emails = [bug.assigned_to]
|
| |
- if bug.assigned_to in FAS_CLIENT.client.\
|
| |
- _AccountSystem__alternate_email:
|
| |
- assigned_to_id = FAS_CLIENT.client.\
|
| |
- _AccountSystem__alternate_email[bug.assigned_to]
|
| |
- assigned_to_user = FAS_CLIENT.get_fas_user_by_id(
|
| |
- assigned_to_id)
|
| |
+
|
| |
+ if FAS_CLIENT.get_fas_user(bug.assigned_to):
|
| |
+ assigned_to_id = FAS_CLIENT.get_fas_user(bug.assigned_to)
|
| |
+ assigned_to_user = FAS_CLIENT.get_fas_user_by_id(assigned_to_id)
|
| |
if assigned_to_user:
|
| |
assigned_to_emails.append(
|
| |
- assigned_to_user['email'])
|
| |
+ assigned_to_user)
|
| |
if flag['setter'] not in assigned_to_emails:
|
| |
raise ValidationError('The review is not approved by '
|
| |
'the assignee of the Bugzilla '
|
| |
New release 1.1.1
Use fasjson api by default
Signed-off-by: Tomas Hrcka thrcka@redhat.com