Skip to content

Commit

Permalink
added custom_fields to data source secret
Browse files Browse the repository at this point in the history
  • Loading branch information
martensson committed Sep 9, 2019
1 parent 96307de commit b6a84a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data_source_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ func DataSourceSecret() *schema.Resource {
Computed: true,
Sensitive: true,
},
"custom_fields": {
Type: schema.TypeMap,
Computed: true,
Sensitive: true,
},
},
}
}
Expand Down Expand Up @@ -88,5 +93,6 @@ func DataSourceSecretRead(d *schema.ResourceData, m interface{}) error {
d.Set("group", secrets[0].Group)
d.Set("url", secrets[0].URL)
d.Set("note", secrets[0].Note)
d.Set("custom_fields", secrets[0].CustomFields)
return nil
}

0 comments on commit b6a84a0

Please sign in to comment.