Skip to content

Commit

Permalink
Merged automatically by CI pipeline
Browse files Browse the repository at this point in the history
SCALRCORE-24000 Provider > panic: interface conversion: interface {} is nil, not string
  • Loading branch information
emocharnik authored Nov 14, 2022
2 parents ecb8e50 + 2cfd34b commit c3651c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `module_verion`: data source: change relation from latest-module-version to module-version ([#181](https://github.com/Scalr/terraform-provider-scalr/pull/181))

### Fixed

- panic when creating workspace with empty var file value ([#191](https://github.com/Scalr/terraform-provider-scalr/pull/191))

## [1.0.0-rc38] - 2022-10-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/scalr_workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ resource "scalr_workspace" "cli-driven" {
* `execution-mode` - (Optional) Which execution mode to use. Valid values are `remote` and `local`. When set to `local`, the workspace will be used for state storage only. Defaults to `remote` (not set, backend default is used).
* `terraform_version` - (Optional) The version of Terraform to use for this workspace. Defaults to the latest available version.
* `working_directory` - (Optional) A relative path that Terraform will be run in. Defaults to the root of the repository `""`.
var_files` - (Optional) A list of paths to the `.tfvars` file(s) to be used as part of the workspace configuration.
* `var_files` - (Optional) A list of paths to the `.tfvars` file(s) to be used as part of the workspace configuration.
* `run_operation_timeout` - (Optional) The number of minutes run operation can be executed before termination. Defaults to `0` (not set, backend default is used).
* `module_version_id` - (Optional) The identifier of a module version in the format `modver-<RANDOM STRING>`. This attribute conflicts with `vcs_provider_id` and `vcs_repo` attributes.
* `agent_pool_id` - (Optional) The identifier of an agent pool in the format `apool-<RANDOM STRING>`.
Expand Down
5 changes: 4 additions & 1 deletion scalr/resource_scalr_workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ func resourceScalrWorkspace() *schema.Resource {
"var_files": {
Type: schema.TypeList,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.NoZeroValues,
},
},

"operations": {
Expand Down

0 comments on commit c3651c2

Please sign in to comment.