mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Fix display of nested facts
This commit is contained in:
parent
cb17209c04
commit
cf04337712
@ -9,7 +9,9 @@ import compareFlatFacts from './compare-facts/flat';
|
||||
|
||||
export function compareFacts(module, facts) {
|
||||
if (module.displayType === 'nested') {
|
||||
return compareNestedFacts(facts);
|
||||
return { factData: compareNestedFacts(facts),
|
||||
isNestedDisplay: true
|
||||
};
|
||||
} else {
|
||||
// For flat structures we compare left-to-right, then right-to-left to
|
||||
// make sure we get a good comparison between both hosts
|
||||
|
||||
@ -127,8 +127,8 @@ export function formatFacts(diffedResults) {
|
||||
}
|
||||
|
||||
export function findFacts(factData) {
|
||||
var rightData = factData[0];
|
||||
var leftData = factData[1];
|
||||
var rightData = factData[0].facts;
|
||||
var leftData = factData[1].facts;
|
||||
|
||||
function factObject(keyPath, key, leftValue, rightValue) {
|
||||
var obj =
|
||||
|
||||
@ -79,9 +79,6 @@ function controller($rootScope,
|
||||
// arrays in index 1
|
||||
//
|
||||
|
||||
// Save the position of the data so we
|
||||
// don't lose it later
|
||||
|
||||
var wrappedFacts =
|
||||
facts.map(function(facts, index) {
|
||||
return { position: index === 0 ? 'left' : 'right',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user