Skip to content

Commit a728d9e

Browse files
authored
Merge branch 'scaleway:master' into master
2 parents 0b4b9c5 + e82ebab commit a728d9e

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
/internal/namespaces/cockpit/ @scaleway/devtools-dms
1212
/internal/namespaces/config/ @scaleway/devtools
1313
/internal/namespaces/container/ @scaleway/devtools-compute
14-
/internal/namespaces/documentdb/ @scaleway/devtools-dms
1514
/internal/namespaces/domain/ @scaleway/devtools-dms
1615
/internal/namespaces/feedback/ @scaleway/devtools
1716
/internal/namespaces/flexibleip/ @scaleway/devtools-network

.github/workflows/nightly.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
- cockpit
2020
- container
2121
- dedibox
22-
- documentdb
2322
- domain
2423
- edge_services
2524
- flexibleip

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ To enable beta features, you can set `SCW_ENABLE_BETA=1` in your environment.
116116
| `cockpit` | Cockpit API | [CLI](./docs/commands/cockpit.md) / [API](https://www.scaleway.com/en/developers/api/cockpit/) |
117117
| `config` | Config file management | [CLI](./docs/commands/config.md) |
118118
| `container` | Serverless Container API | [CLI](./docs/commands/container.md) / [API](https://www.scaleway.com/en/developers/api/serverless-containers/) |
119-
| `documentdb` | DocumentDB API | [CLI](./docs/commands/document-db.md) |
120119
| `dns` | DNS API | [CLI](./docs/commands/dns.md) / [API](https://www.scaleway.com/en/developers/api/domains-and-dns/) |
121120
| `feedback` | Send feedback to the Scaleway CLI Team! | [CLI](./docs/commands/feedback.md) |
122121
| `flexibleip` | Flexible IP API | [CLI](./docs/commands/fip.md) / [API](https://www.scaleway.com/en/developers/api/elastic-metal-flexible-ip/) |

internal/namespaces/instance/v1/helpers_types.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ func getEndOfServiceDate(
121121
}
122122

123123
for _, product := range products.Products {
124-
if strings.HasPrefix(product.Product, commercialType) {
125-
if product.Locality.Zone != nil && *product.Locality.Zone == zone {
126-
return product.EndOfLifeAt.Format(time.DateOnly), nil
127-
}
124+
if product.Properties != nil && product.Properties.Instance != nil &&
125+
product.Properties.Instance.OfferID == commercialType {
126+
return product.EndOfLifeAt.Format(time.DateOnly), nil
128127
}
129128
}
130129

0 commit comments

Comments
 (0)