Skip to content

Commit

Permalink
Fix liniting errors
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Dubois <[email protected]>
  • Loading branch information
duboisph committed Nov 15, 2023
1 parent 666e288 commit 2c733d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion provider/resource_opensearch_sm_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ func resourceOpenSearchSMPolicy() *schema.Resource {
Schema: openSearchSMPolicySchema,
Importer: &schema.ResourceImporter{
StateContext: func(ctx context.Context, d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
d.Set("policy_name", d.Id())
var err error = d.Set("policy_name", d.Id())
if err != nil {
return nil, err
}

d.SetId(fmt.Sprintf("%s-sm-policy", d.Id()))
return []*schema.ResourceData{d}, nil
},
Expand Down

0 comments on commit 2c733d7

Please sign in to comment.