mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #52] is there anyway to whit 1 method , start or stop lxc and qemu? #27
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#27
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 @acairon on GitHub (Apr 25, 2021).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/52
Hello i have this 2 methods
proxmox.nodes(env("PROX_NODE")).lxc(vmid).status.post(action)
and
proxmox.nodes(env("PROX_NODE")).qemu(vmid).status.post(action)
is there anyway i can do 2 methods in one?
like
def method(vmid,type)
proxmox.nodes(env("PROX_NODE")).$type(vmid).status.post(action)
or somethin
@morph027 commented on GitHub (Apr 25, 2021):
Nothing to do with proxmoxer in special, but you can do smthg. like
@acairon commented on GitHub (Apr 25, 2021):
sorry if it's a stupid question, as a student I'm learning little by little xD :/
@morph027 commented on GitHub (Apr 25, 2021):
No problem, you're welcome! There are no dumb questions ;)