Skip to content

Commit

Permalink
fix : #360/#361 : import config system and config auth
Browse files Browse the repository at this point in the history
  • Loading branch information
flbla committed Aug 21, 2023
1 parent d4a4dfb commit e986e57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions provider/resource_config_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ func resourceConfigAuth() *schema.Resource {
Read: resourceConfigAuthRead,
Update: resourceConfigAuthCreate,
Delete: resourceConfigAuthDelete,
Importer: &schema.ResourceImporter{
State: func(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
resourceConfigAuthRead(d, m)
return []*schema.ResourceData{d}, nil
},
},
}
}

Expand Down
6 changes: 6 additions & 0 deletions provider/resource_config_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ func resourceConfigSystem() *schema.Resource {
Read: resourceConfigSystemRead,
Update: resourceConfigSystemCreate,
Delete: resourceConfigSystemDelete,
Importer: &schema.ResourceImporter{
State: func(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
resourceConfigSystemRead(d, m)
return []*schema.ResourceData{d}, nil
},
},
}
}

Expand Down

0 comments on commit e986e57

Please sign in to comment.