mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user