Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_user() via whoami #20

Open
zlobober opened this issue Sep 13, 2024 · 0 comments
Open

default_user() via whoami #20

zlobober opened this issue Sep 13, 2024 · 0 comments
Assignees

Comments

@zlobober
Copy link

def default_user():
return os.getenv("YT_USER") or getpass.getuser()

Sometimes, local username on user's personal computer may not match the username from YT's perspective. Let's instead perform a whoami call here?

https://github.com/ytsaurus/ytsaurus/blob/a339aeb25afd7ae78fd7fdf5934263951cb19407/yt/python/yt/wrapper/http_helpers.py#L705-L738

@faucct faucct self-assigned this Sep 17, 2024
robot-piglet pushed a commit that referenced this issue Sep 23, 2024
#20

---

Pull Request resolved: #22
commit_hash:dc2b9acb71855a0871e6b7b3d4f7899748f3d89f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants