Skip to content

Commit

Permalink
SCALRCORE-18479 > Add new attribute to workspace resource [API_BRANCH]
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Vang committed Jun 17, 2021
1 parent 0e10318 commit a56ed29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scalr/resource_scalr_workspace.go
Expand Up @@ -78,6 +78,11 @@ func resourceScalrWorkspace() *schema.Resource {
Computed: true,
},

"has_active_state": {
Type: schema.TypeBool,
Computed: true,
},

"vcs_repo": {
Type: schema.TypeList,
Optional: true,
Expand Down Expand Up @@ -216,6 +221,7 @@ func resourceScalrWorkspaceRead(d *schema.ResourceData, meta interface{}) error
d.Set("terraform_version", workspace.TerraformVersion)
d.Set("working_directory", workspace.WorkingDirectory)
d.Set("environment_id", workspace.Environment.ID)
d.Set("has_active_state", workspace.HasActiveState)

if workspace.VcsProvider != nil {
d.Set("vcs_provider_id", workspace.VcsProvider.ID)
Expand Down

0 comments on commit a56ed29

Please sign in to comment.