mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
fixed default verbosity pull from API from hanging tower
This commit is contained in:
parent
b3159940eb
commit
577a13d5bd
@ -767,7 +767,9 @@ angular.module('Utilities', ['RestServices', 'Utilities', 'sanitizeFilter'])
|
||||
.success(function (data) {
|
||||
var choices, defaultChoice;
|
||||
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) {
|
||||
// including 'name' property so list can be used by search
|
||||
choices.forEach(function(choice) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user