mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[PR #24] [MERGED] Fix get_tokens() error with API tokens #138
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#138
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/proxmoxer/proxmoxer/pull/24
Author: @jhollowe
Created: 5/20/2020
Status: ✅ Merged
Merged: 5/20/2020
Merged by: @jhollowe
Base:
develop← Head:fix-get_tokens📝 Commits (4)
aecbffdFix get_tokens() error with API tokensa8b1fcbAdd get_tokens() test for API Token auth121ee80Add get_tokens() test for user/password auth325e877Remove get_tokens() test for user/password auth📊 Changes
3 files changed (+8 additions, -6 deletions)
View changed files
📝
proxmoxer/backends/https.py(+4 -4)📝
proxmoxer/core.py(+1 -1)📝
tests/https_tests.py(+3 -1)📄 Description
calling
get_tokens()on an API Token auth throws an error. This solves the problem by properly passing the get_token call to the auth rather than the backend and correctly sets a default of (None, None) for the returned tokens.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.