Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/edgio_api/edgio_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ func (c *EdgioClient) UpdateEnvironment(environmentID, name string, onlyMaintain
"name": name,
// as can_members_deploy is depricated, but update api is not
// we need to use it to map onlyMaintainersCanDeploy
"can_members_deploy": !onlyMaintainersCanDeploy,
"only_maintainers_can_deploy": onlyMaintainersCanDeploy,
"http_request_logging": httpRequestLogging,
"preserve_cache": preserveCache,
Expand Down
4 changes: 2 additions & 2 deletions internal/integration_tests/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestEnvironment_Lifecycle(t *testing.T) {
})
}

func getEnvConfig(clientID, clientSecret, organizationID, propertySlug, envName string, canMembersDeploy, httpRequestLogging bool) string {
func getEnvConfig(clientID, clientSecret, organizationID, propertySlug, envName string, onlyMaintainersCanDeploy, httpRequestLogging bool) string {
return fmt.Sprintf(`
provider "edgio" {
client_id = "%s"
Expand All @@ -68,5 +68,5 @@ func getEnvConfig(clientID, clientSecret, organizationID, propertySlug, envName
name = "%s"
only_maintainers_can_deploy = %t
http_request_logging = %t
}`, clientID, clientSecret, organizationID, propertySlug, envName, canMembersDeploy, httpRequestLogging)
}`, clientID, clientSecret, organizationID, propertySlug, envName, onlyMaintainersCanDeploy, httpRequestLogging)
}