mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 00:08:44 -03:30
Merge pull request #5949 from gconsidine/fix/inventory-groups
Fix issue preventing inventory groups from loading
This commit is contained in:
@@ -10,7 +10,7 @@ export default
|
||||
this.canAdd = function(apiPath) {
|
||||
var canAddVal = $q.defer();
|
||||
|
||||
if (apiPath.indexOf("api/v1") > -1) {
|
||||
if (/api\/v[0-9]+\//.test(apiPath)) {
|
||||
Rest.setUrl(apiPath);
|
||||
} else {
|
||||
Rest.setUrl(GetBasePath(apiPath));
|
||||
|
||||
Reference in New Issue
Block a user