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

New Check: Property using StateFunc inside TypeSet #238

Open
magodo opened this issue May 14, 2021 · 0 comments
Open

New Check: Property using StateFunc inside TypeSet #238

magodo opened this issue May 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@magodo
Copy link
Contributor

magodo commented May 14, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

There is an issue hashicorp/terraform-plugin-sdk#160 stating that there will problematic if there is at least one nested property inside a TypeSet has StateFunc defined.

New or Affected Checks(s)

  • S038

Flagged Provider Code

&schema.Schema{
    Type: schema.TypeSet,
    Elem: &schema.Resource {
        Schema: map[string]*schema.Schema {
            "foo": { StateFunc: f},
        },
    },
}

Passing Provider Code

&schema.Schema{
    Type: schema.TypeSet,
    Elem: &schema.Resource {
        Schema: map[string]*schema.Schema {},
    },
}

References

hashicorp/terraform-plugin-sdk#160

@magodo magodo added the enhancement New feature or request label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant