Skip to content

Commit 8b77e6b

Browse files
committed
fix: response codes for project and tenant creation
1 parent 9af427d commit 8b77e6b

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
## 0.5.4
1+
## v0.5.5
22

3-
fix: http response code for building block creation is now 201
3+
FIXES:
4+
- HTTP response code for tenant creation is now 201.
5+
- HTTP response code for project creation is now 201.
6+
7+
## v0.5.4
8+
9+
FIXES:
10+
- HTTP response code for building block creation is now 201.

client/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func (c *MeshStackProviderClient) CreateProject(project *MeshProjectCreate) (*Me
178178
return nil, err
179179
}
180180

181-
if res.StatusCode != 200 {
181+
if res.StatusCode != 201 {
182182
return nil, fmt.Errorf("unexpected status code: %d, %s", res.StatusCode, data)
183183
}
184184

client/tenant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (c *MeshStackProviderClient) CreateTenant(tenant *MeshTenantCreate) (*MeshT
121121
return nil, err
122122
}
123123

124-
if res.StatusCode != 200 {
124+
if res.StatusCode != 201 {
125125
return nil, fmt.Errorf("unexpected status code: %d, %s", res.StatusCode, data)
126126
}
127127

0 commit comments

Comments
 (0)