Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCALRCORE-22986 Provider > Non-empty plan with empty hooks for workspace #179

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

DayS1eeper
Copy link
Contributor

Changelog

Documentation

  • I have updated resource/data source documentation in docs

State

  • My changes affect the state
  • I have included a state migration and a unit test for it

@DayS1eeper DayS1eeper self-assigned this Sep 29, 2022
@@ -484,6 +485,14 @@ func resourceScalrWorkspaceRead(d *schema.ResourceData, meta interface{}) error
"pre_apply": workspace.Hooks.PreApply,
"post_apply": workspace.Hooks.PostApply,
})
} else if _, ok := d.GetOk("hooks"); ok {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I thought about fixing this problem by setting a default value for hook argument, but it is not supported for TypeList hashicorp/terraform-plugin-sdk#142

@emocharnik emocharnik merged commit a1b2df8 into develop Oct 3, 2022
@emocharnik emocharnik deleted the fix/SCALRCORE-22986 branch October 3, 2022 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants