mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 10:08:10 -03:30
Rename createInstanceGroups api method to associateInstanceGroup
This commit is contained in:
@@ -110,7 +110,7 @@ class APIClient {
|
||||
return this.http.get(API_INSTANCE_GROUPS, { params });
|
||||
}
|
||||
|
||||
createInstanceGroups (url, id) {
|
||||
associateInstanceGroup (url, id) {
|
||||
return this.http.post(url, { id });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ class OrganizationAdd extends React.Component {
|
||||
try {
|
||||
if (instanceGroups.length > 0) {
|
||||
instanceGroups.forEach(async (select) => {
|
||||
await api.createInstanceGroups(instanceGroupsUrl, select.id);
|
||||
await api.associateInstanceGroup(instanceGroupsUrl, select.id);
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user