Skip to content

Commit

Permalink
Update data_source_onepassword_item.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev authored Apr 17, 2024
1 parent 1410860 commit aa0f7f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions onepassword/data_source_onepassword_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,17 @@ func dataSourceOnepasswordItemRead(ctx context.Context, data *schema.ResourceDat
data.Set("username", f.Value)
case "PASSWORD":
data.Set("password", f.Value)
case "CREDENTIAL":
if f.ID == "credential" {
data.Set("password", f.Value)
}
case "NOTES":
data.Set("note_value", f.Value)
default:
if f.Section == nil {
data.Set(strings.ToLower(f.Label), f.Value)
}
}

if f.ID == "credential" {
data.Set("password", f.Value)
}
}

return nil
Expand Down

0 comments on commit aa0f7f2

Please sign in to comment.