mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Updated to handle fact vs. facts responses. Removed accidental commit inclusion from branch.
This commit is contained in:
parent
a40f4b61b1
commit
dfaffdea56
@ -89,7 +89,15 @@ function controller($rootScope,
|
||||
leftRange,
|
||||
rightRange)
|
||||
.then(function(responses) {
|
||||
var data = _.pluck(responses, 'facts');
|
||||
var data = [];
|
||||
_.each(responses, function(response) {
|
||||
if(response.fact) {
|
||||
data.push(response.fact);
|
||||
} else if (response.facts) {
|
||||
data.push(response.facts);
|
||||
}
|
||||
});
|
||||
|
||||
if (_.isEmpty(data[0]) && _.isEmpty(data[1])) {
|
||||
return _.reject({
|
||||
name: 'NoScanData',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user