commands: Fix handling of keyword arguments in query_ldap command.

This bug seems to be introduced by me while doing the refactoring
in `94649f58f2fe0ed78d84e597ad6676522cfef9be`.

Fixes: #12006.
This commit is contained in:
Harshit Bansal
2019-04-04 18:40:09 +00:00
committed by Tim Abbott
parent b12f494031
commit b630a6456d

View File

@@ -12,6 +12,7 @@ class Command(BaseCommand):
help="email of user to query")
def handle(self, *args: Any, **options: str) -> None:
values = query_ldap(**options)
email = options['email']
values = query_ldap(email)
for value in values:
print(value)