Fix recursive method call in sudo controller
continuous-integration/drone/push Build is passing Details

master
Garrett Mills 3 years ago
parent 627499537d
commit 636e1f8ab9
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -107,7 +107,7 @@ class SudoController extends LDAPController {
parse_sudo_hosts(filter, target_hosts = []) {
if ( Array.isArray(filter?.filters) ) {
for ( const sub_filter of filter.filters ) {
target_hosts = [...target_hosts, ...this.parse_iam_targets(sub_filter)]
target_hosts = [...target_hosts, ...this.parse_sudo_hosts(sub_filter)]
}
} else if ( filter?.attribute ) {
if ( filter.attribute === 'sudohost' ) {

Loading…
Cancel
Save