Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Jan 11, 2024
1 parent f76ad58 commit 4c2046d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions infisical/provider/secrets_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ func (d *SecretsDataSource) Read(ctx context.Context, req datasource.ReadRequest
data.Secrets[secret.Key] = InfisicalSecretDetails{Value: types.StringValue(secret.Value), Comment: types.StringValue(secret.Comment), SecretType: types.StringValue(secret.Type)}
}
} else if d.client.Config.AuthStrategy == infisical.AuthStrategy.UNIVERSAL_MACHINE_IDENTITY {

secrets, err := d.client.GetRawSecretsViaMachineIdentity(data.FolderPath.ValueString(), data.EnvSlug.ValueString(), data.WorkspaceId.ValueString())
secrets, err := d.client.GetRawSecrets(data.FolderPath.ValueString(), data.EnvSlug.ValueString(), data.WorkspaceId.ValueString())
if err != nil {
resp.Diagnostics.AddError(
"Something went wrong while fetching secrets",
Expand Down

0 comments on commit 4c2046d

Please sign in to comment.