diff --git a/awx/ui/client/src/adhoc/adhoc.controller.js b/awx/ui/client/src/adhoc/adhoc.controller.js index a66629fb48..4ccf56ca54 100644 --- a/awx/ui/client/src/adhoc/adhoc.controller.js +++ b/awx/ui/client/src/adhoc/adhoc.controller.js @@ -23,7 +23,6 @@ function adhocController($q, $scope, $rootScope, $location, $stateParams, this.privateFn = privateFn; var id = $stateParams.inventory_id, - urls = privateFn.setAvailableUrls(), hostPattern = $rootScope.hostPatterns || "all"; // 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 privateFn.setFieldDefaults = function(verbosity_options, forks_default) { var verbosity;