In view scope, display a line per item if few attributs requested
This commit is contained in:
parent
e270f53e35
commit
1d29046348
1 changed files with 8 additions and 1 deletions
|
@ -730,7 +730,14 @@ sub cmd_account_view($@)
|
|||
say BOLD, YELLOW, "dn: ", RESET, YELLOW, $entry->dn, RESET;
|
||||
|
||||
for my $attr (@attrs) {
|
||||
say CYAN, "$attr: ", RESET , join(', ', $entry->get_value($attr));
|
||||
if ($#attrs < 3) {
|
||||
for my $entry ($entry->get_value($attr)) {
|
||||
say CYAN, "$attr: ", RESET , $entry;
|
||||
}
|
||||
}
|
||||
else {
|
||||
say CYAN, "$attr: ", RESET , join(', ', $entry->get_value($attr));
|
||||
}
|
||||
}
|
||||
|
||||
$nb++;
|
||||
|
|
Reference in a new issue