Merge pull request #8043 from john-westcott-iv/instance_groups_module

Adding tower_instance_group module

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-09-01 20:26:44 +00:00
committed by GitHub
5 changed files with 294 additions and 2 deletions

View File

@@ -110,6 +110,8 @@ class TowerAPIModule(TowerModule):
name_field = 'name'
if endpoint == 'users':
name_field = 'username'
elif endpoint == 'instances':
name_field = 'hostname'
query_params = {'or__{0}'.format(name_field): name_or_id}
try: