Skip to content

Commit c627536

Browse files
committed
feat: Change method to return mounted ISO details instead of bool
The `isMountedIso` method was renamed to `getMountedIso` and its return type changed from `bool` to `mixed`. This allows retrieving detailed information about the mounted ISO instead of just a boolean value, enhancing the method's utility.
1 parent 8117513 commit c627536

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RootServer/RootServer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ public function getIsos(): mixed
8181

8282
/**
8383
* @param int $vm_id
84-
* @return bool
84+
* @return mixed
8585
* @throws GuzzleException
8686
*/
87-
public function isMountedIso(int $vm_id): bool
87+
public function getMountedIso(int $vm_id): mixed
8888
{
8989
$this->validateVMId($vm_id);
90-
return $this->client->get("vm/{$vm_id}/config")['data']['config']['iso']['attached'] ?? false;
90+
return $this->client->get("vm/{$vm_id}/config")['data']['config']['iso'];
9191
}
9292

9393
/**

0 commit comments

Comments
 (0)