Skip to content

Commit

Permalink
Fixed the panic state for Harness Secret File(#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
adiyaar24 committed Nov 27, 2023
1 parent e13f18a commit 8bad909
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/service/platform/secret/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ func buildTag(no_of_tags int, tags *schema.Set) string {
return result
}


func readSecretFile(d *schema.ResourceData, secret *nextgen.Secret) error {
if secret == nil {
return nil
}
d.Set("secret_manager_identifier", secret.File.SecretManagerIdentifier)
d.SetId(secret.Identifier)
d.Set("identifier", secret.Identifier)
Expand Down

0 comments on commit 8bad909

Please sign in to comment.