mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
Handle single-host with empty versions
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user