1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

[system_tracking] Make calling of nestedCompare consistent with flatCompare

This commit is contained in:
Joe Fiorini 2015-07-06 11:09:49 -04:00
parent 4fd0fbda08
commit 7bedaf1ad7
2 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@ export function compareFacts(module, facts) {
})
.value();
} else {
return { factData: compareNestedFacts(facts),
return { factData: compareNestedFacts(facts[0], facts[1]),
isNestedDisplay: true
};
}

View File

@ -6,8 +6,9 @@
import {formatFacts, findFacts} from './nested-helpers';
export default function nestedCompare(factsList) {
export default function nestedCompare(basisFacts, comparatorFacts) {
var factsList = [basisFacts, comparatorFacts];
factsList = findFacts(factsList);
factsList = compareFacts(factsList);
return formatFacts(factsList);