From b0537803264c9f472faa58aac3048613e48af5ed Mon Sep 17 00:00:00 2001 From: Leigh Date: Thu, 12 May 2016 09:31:46 -0400 Subject: [PATCH] fix error adhoc command error, resolves #1800 (#1900) --- awx/ui/client/src/adhoc/adhoc.controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;