Skip to content

Commit

Permalink
Updated the log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthaI committed Nov 30, 2023
1 parent 76fd349 commit aa72683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion azure/table_azure_key_vault_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ func listKeyVaultCertificates(ctx context.Context, d *plugin.QueryData, h *plugi
//// HYDRATE FUNCTIONS

func getKeyVaultCertificate(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData) (interface{}, error) {
plugin.Logger(ctx).Trace("getKeyVaultCertificate")

var vaultName, name string
if h.Item != nil {
Expand All @@ -270,6 +269,7 @@ func getKeyVaultCertificate(ctx context.Context, d *plugin.QueryData, h *plugin.
// Create session
session, err := GetNewSession(ctx, d, "VAULT")
if err != nil {
plugin.Logger(ctx).Error("azure_key_vault_certificate.getKeyVaultCertificate", "session_error", err)
return nil, err
}

Expand All @@ -280,6 +280,7 @@ func getKeyVaultCertificate(ctx context.Context, d *plugin.QueryData, h *plugin.

op, err := client.GetCertificate(ctx, vaultURI, name, "")
if err != nil {
plugin.Logger(ctx).Error("azure_key_vault_certificate.getKeyVaultCertificate", "api_error", err)
return nil, err
}

Expand Down

0 comments on commit aa72683

Please sign in to comment.