You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm trying to get info about deploy key using key id of another user using root token result is empty.
gl.keys.list(all=True) returns keys only for root user.
But don't you think that 'keys' may be a little ambiguous name for this since we can list users own keys via api using keys in GET? And is there any possibility to do this with python-gitlab?
Activity
gpocentek commentedon Feb 4, 2017
I've tested locally and haven't been able to reproduce the problem.
Have you verified that the keys you're trying to list are really deploy keys, and not the user's own keys?
gpocentek commentedon Feb 4, 2017
BTW your GET example is not accessing a deploy key, the URL would be
/v3/deploy_keys/....loockass commentedon Feb 4, 2017
Yep, you're right. It was my fault.
But don't you think that 'keys' may be a little ambiguous name for this since we can list users own keys via api using
keysin GET? And is there any possibility to do this with python-gitlab?gpocentek commentedon Feb 4, 2017
Yes I agree, using
gl.keysis probably not the best idea. I could probably add a deploykeys attribute.The user own keys can be listed using the
gl.user.keysmanager: