We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 836fd0e commit 34b499cCopy full SHA for 34b499c
1 file changed
examples/get_tenant_token.py
@@ -17,7 +17,8 @@
17
18
if len(sys.argv) > 2:
19
# Filter tenants that matches the provided pattern
20
- tenants = filter(lambda tenant: sys.argv[2] in tenant.name, tenants)
+ pattern = sys.argv[2]
21
+ tenants = [t for t in tenants if pattern in t.name]
22
23
# Pick the first one
24
tenant = tenants[0]
0 commit comments