fix: update Proxmox instantiation and correct VM ID reference in storage content request
This commit is contained in:
@@ -290,10 +290,10 @@ class Storage extends Component
|
|||||||
$sizeGb = 0;
|
$sizeGb = 0;
|
||||||
$sizeFormatted = 'Unknown';
|
$sizeFormatted = 'Unknown';
|
||||||
try {
|
try {
|
||||||
$proxmox = new Proxmox($this->server->node->server);
|
$proxmox = new Proxmox;
|
||||||
$storageContent = $proxmox->request(
|
$storageContent = $proxmox->request(
|
||||||
'/nodes/' . $this->server->node->name . '/storage/' . $storageName . '/content',
|
'/nodes/' . $this->server->node->name . '/storage/' . $storageName . '/content',
|
||||||
data: ['vmid' => $this->server->vmid]
|
data: ['vmid' => $this->server->vm_id]
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isset($storageContent['data']) && is_array($storageContent['data'])) {
|
if (isset($storageContent['data']) && is_array($storageContent['data'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user