mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -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) {
|
this.canAdd = function(apiPath) {
|
||||||
var canAddVal = $q.defer();
|
var canAddVal = $q.defer();
|
||||||
|
|
||||||
if (apiPath.indexOf("api/v1") > -1) {
|
if (/api\/v[0-9]+\//.test(apiPath)) {
|
||||||
Rest.setUrl(apiPath);
|
Rest.setUrl(apiPath);
|
||||||
} else {
|
} else {
|
||||||
Rest.setUrl(GetBasePath(apiPath));
|
Rest.setUrl(GetBasePath(apiPath));
|
||||||
|
|||||||
Reference in New Issue
Block a user