mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
Second attempt at converting tower_job_template
This commit is contained in:
@@ -475,6 +475,10 @@ class TowerModule(AnsibleModule):
|
||||
self.exit_json(**self.json_output)
|
||||
|
||||
def modify_associations(self, association_endpoint, new_association_list):
|
||||
# if we got None instead of [] we are not modifying the association_list
|
||||
if new_association_list is None:
|
||||
return
|
||||
|
||||
# First get the existing associations
|
||||
response = self.get_all_endpoint(association_endpoint)
|
||||
existing_associated_ids = [association['id'] for association in response['json']['results']]
|
||||
|
||||
Reference in New Issue
Block a user