Skip to content

Commit

Permalink
SCALRCORE-20057 fix provider crash while reading environment without …
Browse files Browse the repository at this point in the history
…proper permissions.
  • Loading branch information
vaniakov committed Sep 1, 2021
1 parent 6119c52 commit 86911d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- `scalr_environment`: fix provider crash while reading environment without proper permissions

## [1.0.0-rc19] - 2021-08-19

### Added
Expand All @@ -27,7 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- `scalr_environment`: fix unlinking cloud credentials ([#71](https://github.com/Scalr/terraform-provider-scalr/pull/71))
- `scalr_workspace`: fix removing hooks if it removed from template ([#72](https://github.com/Scalr/terraform-provider-scalr/pull/72))
- `scalr_workspace`: fix removing hooks if it removed from template ([#72](https://github.com/Scalr/terraform-provider-scalr/pull/72))

### Required

Expand Down
1 change: 1 addition & 0 deletions scalr/resource_scalr_environment.go
Expand Up @@ -120,6 +120,7 @@ func resourceScalrEnvironmentRead(d *schema.ResourceData, meta interface{}) erro
d.SetId("")
return nil
}
return fmt.Errorf("Error reading environment %s: %v", environmentID, err)
}

// Update the configuration.
Expand Down

0 comments on commit 86911d1

Please sign in to comment.