Skip to content

Commit 2fca41c

Browse files
author
Jamie Hannaford
authored
Merge pull request #139 from nexcess/vol-fix
Fixing CS and block UUID check
2 parents 352f823 + 2214289 commit 2fca41c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Compute/v2/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ public function getHypervisors(): array
664664
'path' => 'os-hypervisors',
665665
'jsonKey' => 'hypervisors',
666666
'params' => [
667-
'limit' => $this->params->limit(),
667+
'limit' => $this->params->limit(),
668668
'marker' => $this->params->marker()
669669
],
670670
];

src/Compute/v2/Models/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class Server extends OperatorResource implements
107107
*/
108108
public function create(array $userOptions): Creatable
109109
{
110-
if (!isset($userOptions['imageId']) && !isset($userOptions['blockDeviceMapping']['uuid'])) {
110+
if (!isset($userOptions['imageId']) && !isset($userOptions['blockDeviceMapping'][0]['uuid'])) {
111111
throw new \RuntimeException('imageId or blockDeviceMapping.uuid must be set.');
112112
}
113113

0 commit comments

Comments
 (0)