Skip to content

New Check: Property using StateFunc inside TypeSet #238

Open
@magodo

Description

@magodo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions