Skip to content

Commit 11d125d

Browse files
committed
On the read-side I had to coerce the type of the marker to 'int' and on the send side I had to send the marker as 'string' and this makes everything happy.
1 parent 1b19538 commit 11d125d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Common/Resource/OperatorResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function enumerate(array $def, array $userVals = [], callable $mapFn = nu
8080

8181
$requestFn = function ($marker) use ($operation, $userVals) {
8282
if ($marker) {
83-
$userVals['marker'] = $marker;
83+
$userVals['marker'] = (string)$marker;
8484
}
8585
return $this->sendRequest($operation, $userVals);
8686
};

src/Compute/v2/Api.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,12 +644,15 @@ public function getHypervisorStatistics(): array
644644

645645
public function getHypervisors(): array
646646
{
647+
$marker = $this->params->marker();
648+
$marker['type'] = Params::INT_TYPE;
649+
647650
return [
648651
'method' => 'GET',
649652
'path' => 'os-hypervisors',
650653
'params' => [
651654
'limit' => $this->params->limit(),
652-
'marker' => $this->params->marker()
655+
'marker' => $marker
653656
],
654657
];
655658
}

0 commit comments

Comments
 (0)