MCPcopy
hub / github.com/MacRimi/ProxMenux / _run_pve_cmd

Function _run_pve_cmd

AppImage/scripts/oci_manager.py:209–217  ·  view source on GitHub ↗

Run a Proxmox VE command.

(cmd: List[str], timeout: int = 60)

Source from the content-addressed store, hash-verified

207
208
209def _run_pve_cmd(cmd: List[str], timeout: int = 60) -> Tuple[int, str, str]:
210 """Run a Proxmox VE command."""
211 try:
212 proc = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout)
213 return proc.returncode, proc.stdout.strip(), proc.stderr.strip()
214 except subprocess.TimeoutExpired:
215 return -1, "", "Command timed out"
216 except Exception as e:
217 return -1, "", str(e)
218
219
220# =================================================================

Callers 15

_get_next_vmidFunction · 0.85
get_available_storagesFunction · 0.85
_find_alpine_templateFunction · 0.85
_install_packages_in_lxcFunction · 0.85
_enable_services_in_lxcFunction · 0.85
_configure_tailscaleFunction · 0.85
pull_oci_imageFunction · 0.85
get_app_statusFunction · 0.85
deploy_appFunction · 0.85
start_appFunction · 0.85
stop_appFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected