mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02: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 });
|
_.every(nonEmptyResults, { 'hostId': nonEmptyResults[0].hostId });
|
||||||
|
|
||||||
if (allSameHost) {
|
if (allSameHost) {
|
||||||
|
|
||||||
|
if (_.any(nonEmptyResults, 'versions.length', 0)) {
|
||||||
|
return _.pluck(nonEmptyResults, 'versions[0]');
|
||||||
|
}
|
||||||
|
|
||||||
var firstTimestamp = nonEmptyResults[0].versions[0].timestamp;
|
var firstTimestamp = nonEmptyResults[0].versions[0].timestamp;
|
||||||
|
|
||||||
var hostIdsWithDupes =
|
var hostIdsWithDupes =
|
||||||
|
|||||||
Reference in New Issue
Block a user