mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Merge pull request #5949 from gconsidine/fix/inventory-groups
Fix issue preventing inventory groups from loading
This commit is contained in:
commit
11ea5d7bab
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user