Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Oct 3, 2023
1 parent 0d72dcb commit 02f389c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions vault/resource_pki_secret_backend_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,19 +557,13 @@ func pkiSecretBackendRoleRead(_ context.Context, d *schema.ResourceData, meta in

listFields := append(pkiSecretListFields, consts.FieldKeyUsage)
// handle TypeList
// for _, k := range pkiSecretListFields {
for _, k := range listFields {
list := expandStringSlice(secret.Data[k].([]interface{}))

if len(list) > 0 {
d.Set(k, list)
}
}
// special handling for key_usage because an empty array or array with
// empty string means we do not want to specify key usage constraints
// if keyUsage, ok := secret.Data[consts.FieldKeyUsage]; ok {
// d.Set(consts.FieldKeyUsage, keyUsage)
// }

// handle TypeBool
for _, k := range pkiSecretBooleanFields {
Expand Down

0 comments on commit 02f389c

Please sign in to comment.