mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
[system_tracking] Make calling of nestedCompare consistent with flatCompare
This commit is contained in:
parent
4fd0fbda08
commit
7bedaf1ad7
@ -48,7 +48,7 @@ export function compareFacts(module, facts) {
|
||||
})
|
||||
.value();
|
||||
} else {
|
||||
return { factData: compareNestedFacts(facts),
|
||||
return { factData: compareNestedFacts(facts[0], facts[1]),
|
||||
isNestedDisplay: true
|
||||
};
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user