mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -03:30
fixed default verbosity pull from API from hanging tower
This commit is contained in:
@@ -767,7 +767,9 @@ angular.module('Utilities', ['RestServices', 'Utilities', 'sanitizeFilter'])
|
|||||||
.success(function (data) {
|
.success(function (data) {
|
||||||
var choices, defaultChoice;
|
var choices, defaultChoice;
|
||||||
choices = (choice_name) ? data.actions.GET[field][choice_name] : data.actions.GET[field].choices;
|
choices = (choice_name) ? data.actions.GET[field][choice_name] : data.actions.GET[field].choices;
|
||||||
defaultChoice = data.actions.POST[field].default;
|
if (data && data.actions && data.actions.POST && data.actions.POST[field]) {
|
||||||
|
defaultChoice = data.actions.POST[field].default;
|
||||||
|
}
|
||||||
if (choices) {
|
if (choices) {
|
||||||
// including 'name' property so list can be used by search
|
// including 'name' property so list can be used by search
|
||||||
choices.forEach(function(choice) {
|
choices.forEach(function(choice) {
|
||||||
|
|||||||
Reference in New Issue
Block a user