We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 836fd0e + 34b499c commit 7ad527aCopy full SHA for 7ad527a
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