1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 18:21:12 +03:00

fix error adhoc command error, resolves #1800 (#1900)

This commit is contained in:
Leigh 2016-05-12 09:31:46 -04:00
parent 03bdf0b1aa
commit b053780326

View File

@ -23,7 +23,6 @@ function adhocController($q, $scope, $rootScope, $location, $stateParams,
this.privateFn = privateFn; this.privateFn = privateFn;
var id = $stateParams.inventory_id, var id = $stateParams.inventory_id,
urls = privateFn.setAvailableUrls(),
hostPattern = $rootScope.hostPatterns || "all"; hostPattern = $rootScope.hostPatterns || "all";
// note: put any urls that the controller will use in here!!!! // note: put any urls that the controller will use in here!!!!
@ -35,6 +34,8 @@ function adhocController($q, $scope, $rootScope, $location, $stateParams,
}; };
}; };
var urls = privateFn.setAvailableUrls();
// set the default options for the selects of the adhoc form // set the default options for the selects of the adhoc form
privateFn.setFieldDefaults = function(verbosity_options, forks_default) { privateFn.setFieldDefaults = function(verbosity_options, forks_default) {
var verbosity; var verbosity;