File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -114,17 +114,11 @@ def inner(options):
114
114
115
115
# Get the currently in-use API key (may come from environment or
116
116
# configuration files, which is handled by the cloud SDK)
117
- api_key_value = accounts .config .get ("api_key" )
118
- api_key = next (accounts .list_api_keys (
119
- filter = {
120
- "key" : api_key_value
121
- }
122
- ))
117
+ api_key = accounts .get_api_key ("me" )
123
118
certificates_owned = list (certs .list_certificates ())
124
119
dev_cert_info = None
125
120
for certif in certificates_owned :
126
- if certif .type == "developer" and (certif .owner_id == api_key .owner_id or
127
- certif .owner_id == api_key .id ):
121
+ if certif .type == "developer" :
128
122
dev_cert_info = certs .get_certificate (certif .id )
129
123
LOG .info ("Found developer certificate named %s" ,
130
124
dev_cert_info .name )
You can’t perform that action at this time.
0 commit comments