Skip to content

Commit

Permalink
send an empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Sep 20, 2023
1 parent 40b2247 commit a748c07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/remote_state_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ func (client *ApiClient) RemoteStateAccessConfiguration(environmentId string) (*
}

func (client *ApiClient) RemoteStateAccessConfigurationCreate(environmentId string, payload RemoteStateAccessConfigurationCreate) (*RemoteStateAccessConfiguration, error) {
if payload.AllowedProjectIds == nil {
payload.AllowedProjectIds = []string{}
}

var result RemoteStateAccessConfiguration
if err := client.http.Put("/remote-backend/states/"+environmentId+"/access-control", payload, &result); err != nil {
return nil, err
Expand Down

0 comments on commit a748c07

Please sign in to comment.