Skip to content

Commit 51402b5

Browse files
committed
review feedback
1 parent 032486e commit 51402b5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Release (2025-MM-DD)
2+
- `iaas`: [v0.30.0](services/iaas/CHANGELOG.md#v0300)
3+
- **Feature:** Add waiter to wait until the preconditions for network area deletion are met: `ReadyForNetworkAreaDeletionWaitHandler`
4+
5+
16
## Release (2025-09-11)
27
- `cdn`: [v1.5.0](services/cdn/CHANGELOG.md#v150)
38
- **Feature:** Added Attribute `LogSink` to `ConfigPatch`
@@ -48,8 +53,6 @@
4853
- `scf`: [v0.2.1](services/scf/CHANGELOG.md#v021)
4954
- **Feature:** Add waiter for deletion of organization
5055
- `iaas`:
51-
- [v0.30.0](services/iaas/CHANGELOG.md#v0300)
52-
- **Feature:** Add waiter to wait until the preconditions for network area deletion are met: `ReadyForNetworkAreaDeletionWaitHandler`
5356
- [v0.29.2](services/iaas/CHANGELOG.md#v0291)
5457
- Increase Timeouts for network area and network wait handlers to 30 minutes
5558
- [v0.29.1](services/iaas/CHANGELOG.md#v0291)

services/iaas/wait/wait.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,13 @@ func ReadyForNetworkAreaDeletionWaitHandler(ctx context.Context, a APIClientInte
115115
if err != nil {
116116
return false, projectList, err
117117
}
118-
if projectList.Items == nil {
118+
if projectList == nil || projectList.Items == nil {
119119
return false, nil, fmt.Errorf("read failed for projects in network area with id %s, the response is not valid: the items are missing", areaId)
120120
}
121121
if len(*projectList.Items) == 0 {
122122
return true, projectList, nil
123123
}
124-
var activeProjects []string
125-
var forbiddenProjects []string
124+
var activeProjects, forbiddenProjects []string
126125
for _, projectId := range *projectList.Items {
127126
_, err := r.GetProjectExecute(ctx, projectId)
128127
if err == nil {

0 commit comments

Comments
 (0)