summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/hbactest.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/hbactest.js')
-rw-r--r--install/ui/src/freeipa/hbactest.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/hbactest.js b/install/ui/src/freeipa/hbactest.js
index 9ac4e8293..83e609381 100644
--- a/install/ui/src/freeipa/hbactest.js
+++ b/install/ui/src/freeipa/hbactest.js
@@ -706,12 +706,15 @@ IPA.hbac.test_run_facet = function(spec) {
that.get_records_map = function(data) {
var records_map = $.ordered_map();
+ var pkeys_map = $.ordered_map();
var matched = data.result.matched;
if (that.show_matched && matched) {
for (var i=0; i<matched.length; i++) {
var pkey = matched[i];
- records_map.put(pkey, { matched: true });
+ var compound_pkey = pkey + i;
+ records_map.put(compound_pkey, { matched: true });
+ pkeys_map.put(compound_pkey, pkey);
}
}
@@ -719,11 +722,16 @@ IPA.hbac.test_run_facet = function(spec) {
if (that.show_unmatched && notmatched) {
for (i=0; i<notmatched.length; i++) {
pkey = notmatched[i];
- records_map.put(pkey, { matched: false });
+ compound_pkey = pkey + i;
+ records_map.put(compound_pkey, { matched: false });
+ pkeys_map.put(compound_pkey, pkey);
}
}
- return records_map;
+ return {
+ records_map: records_map,
+ pkeys_map: pkeys_map
+ };
};
that.get_records_command_name = function() {
@@ -811,4 +819,4 @@ exp.register = function() {
phases.on('registration', exp.register);
return exp;
-}); \ No newline at end of file
+});