mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #147] Can't get vm lock status #75
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#75
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?
Originally created by @SuicidalToaster on GitHub (Oct 16, 2023).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/147
I wrote a bunch of variations trying to get quemu lock status and can't pin down this. I managed to get all subdirs of a vm but never the state of said vm. For instance we have a readme example:
is working but
is not
What am I doing wrong?
Python 3.11
Proxmox 8.0.4
@SuicidalToaster commented on GitHub (Oct 17, 2023):
Turns out when vm is not locked, vm['lock'] will always throw an error unless it is in any kind of lock state. For example let's take 2 machines: locked VM1 and unlocked VM2