Instance group preference order consistent with docs

This commit is contained in:
AlanCoding
2017-05-15 15:41:57 -04:00
parent 537e046815
commit fbf24492d8
6 changed files with 82 additions and 6 deletions

View File

@@ -524,4 +524,7 @@ class ProjectUpdate(UnifiedJob, ProjectOptions, JobNotificationMixin):
else:
organization_groups = []
template_groups = [x for x in super(ProjectUpdate, self).preferred_instance_groups]
return template_groups + organization_groups
selected_groups = template_groups + organization_groups
if not selected_groups:
return self.global_instance_groups
return selected_groups