Skip to content

Commit b6e9f05

Browse files
author
Jeny Sadadia
committed
kernelci.cli.user: send API token to GET user matching ID
Send API token for getting user matching given ID as the endpoint has made accessible to only authorized users. Signed-off-by: Jeny Sadadia <[email protected]>
1 parent 9385014 commit b6e9f05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernelci/cli/user.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ def verify(username, config, api):
132132
click.echo("Email verification successful!")
133133

134134

135-
@kci_user.command
135+
@kci_user.command(secrets=True)
136136
@click.argument('user_id')
137137
@Args.config
138138
@Args.api
139139
@Args.indent
140140
@catch_http_error
141-
def get(user_id, config, api, indent):
141+
def get(user_id, config, api, indent, secrets):
142142
"""Get a user with a given ID"""
143-
api = get_api(config, api)
143+
api = get_api(config, api, secrets)
144144
user = api.get_user(user_id)
145145
click.echo(json.dumps(user, indent=indent))
146146

0 commit comments

Comments
 (0)