Skip to content

Commit

Permalink
Merge pull request #80 from mittwald/bugfix/ingress-projectid
Browse files Browse the repository at this point in the history
Set project ID correctly when creating ingress
  • Loading branch information
martin-helmich authored Nov 13, 2024
2 parents 29d1bee + f66d220 commit 0168d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/mittwaldv2/client_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ func (c *domainClient) GetIngress(ctx context.Context, ingressID string) (*DeMit
}

func (c *domainClient) CreateIngress(ctx context.Context, projectID string, body IngressCreateIngressJSONRequestBody) (string, error) {
body.ProjectId = uuid.MustParse(projectID)

resp, err := c.client.IngressCreateIngressWithResponse(ctx, body)
if err != nil {
return "", err
}

body.ProjectId = uuid.MustParse(projectID)

if resp.JSON201 == nil {
return "", errUnexpectedStatus(resp.StatusCode(), resp.Body)
}
Expand Down

0 comments on commit 0168d62

Please sign in to comment.