mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Handle single-host with empty versions
This commit is contained in:
parent
8868235af2
commit
b84bba19f8
@ -31,6 +31,11 @@ function resolveVersions(service, _, results) {
|
||||
_.every(nonEmptyResults, { 'hostId': nonEmptyResults[0].hostId });
|
||||
|
||||
if (allSameHost) {
|
||||
|
||||
if (_.any(nonEmptyResults, 'versions.length', 0)) {
|
||||
return _.pluck(nonEmptyResults, 'versions[0]');
|
||||
}
|
||||
|
||||
var firstTimestamp = nonEmptyResults[0].versions[0].timestamp;
|
||||
|
||||
var hostIdsWithDupes =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user