Skip to content

Commit 2a03cd0

Browse files
committed
Switch to using our own \OpenStack\Common\Transport\Utils::jsonDecode() in the one place we were using Guzzle's.
1 parent 4959f98 commit 2a03cd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Metric/v1/Gnocchi/Models/Resource.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use OpenStack\Common\Resource\OperatorResource;
88
use OpenStack\Common\Resource\Retrievable;
9+
use OpenStack\Common\Transport\Utils;
910
use OpenStack\Metric\v1\Gnocchi\Api;
1011

1112
/**
@@ -132,7 +133,7 @@ public function getMetricMeasures(array $options = []): array
132133

133134
$response = $this->execute($this->api->getResourceMetricMeasures(), $options);
134135

135-
return \GuzzleHttp\json_decode((string) $response->getBody());
136+
return Utils::jsonDecode($response);
136137
}
137138

138139
/**

0 commit comments

Comments
 (0)