Adding tower_instance_group module

This commit is contained in:
John Westcott IV
2020-08-28 15:25:32 -04:00
parent e1095a0a94
commit 9e29dd08fb
4 changed files with 291 additions and 0 deletions

View File

@@ -109,6 +109,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: