Skip to content

Commit

Permalink
fix: import secret_name to state when importing github_actions_organi…
Browse files Browse the repository at this point in the history
…zation_secret_repositories
  • Loading branch information
uthark committed Jun 27, 2024
1 parent 2a17feb commit ae814b0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ func resourceGithubActionsOrganizationSecretRepositories() *schema.Resource {
Update: resourceGithubActionsOrganizationSecretRepositoriesCreateOrUpdate,
Delete: resourceGithubActionsOrganizationSecretRepositoriesDelete,
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
State: func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
if err := d.Set("secret_name", d.Id()); err != nil {
return nil, err
}
return []*schema.ResourceData{d}, nil
},
},

Schema: map[string]*schema.Schema{
Expand Down

0 comments on commit ae814b0

Please sign in to comment.