Skip to content

Commit

Permalink
added id to text_file_resource
Browse files Browse the repository at this point in the history
  • Loading branch information
draganm committed Oct 22, 2024
1 parent 42d99c7 commit 91ca242
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datasource/textfile/text_file_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (

func Resource() *schema.Resource {
return &schema.Resource{
Read: resourceRead,
Read: resourceRead,
Update: resourceRead,

Schema: map[string]*schema.Schema{
"ssh_key": {
Expand Down Expand Up @@ -67,6 +68,8 @@ func resourceRead(d *schema.ResourceData, m interface{}) error {

d.Set("content", stdoutString)

d.SetId("-")

return nil

}

0 comments on commit 91ca242

Please # to comment.