Skip to content

Commit d831779

Browse files
Add support for custom and snapshot image types
Fixes #333 Co-Authored-By: malc0mn <[email protected]>
1 parent 3a7a3c2 commit d831779

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CHANGE LOG
88
* Drop support for PHP earlier than 8.1
99
* Moved various param types to native PHP types
1010
* Add `floatingIpLimit` to `Account` entity
11+
* Add support for `custom` and `snapshot` image types
1112

1213

1314
## 4.9.1 (23/02/2025)

src/Api/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getAll(array $criteria = []): array
3333
{
3434
$query = [];
3535

36-
if (isset($criteria['type']) && \in_array($criteria['type'], ['distribution', 'application'], true)) {
36+
if (isset($criteria['type']) && \in_array($criteria['type'], ['application', 'custom', 'distribution', 'snapshot'], true)) {
3737
$query['type'] = $criteria['type'];
3838
}
3939

0 commit comments

Comments
 (0)