Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Nov 13, 2023
1 parent ec98b8e commit da62806
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vault/data_source_azure_access_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ func azureAccessCredentialsDataSourceRead(ctx context.Context, d *schema.Resourc
return diag.Errorf("failed to create providers client: %s", err)
}
delay := time.Duration(d.Get("num_seconds_between_tests").(int)) * time.Second
maxValidationDuration := d.Get("max_cred_validation_seconds").(int)
endTime := time.Now().Add(time.Duration(maxValidationDuration) * time.Second)
maxValidationSeconds := d.Get("max_cred_validation_seconds").(int)
endTime := time.Now().Add(time.Duration(maxValidationSeconds) * time.Second)
wantSuccessCount := d.Get("num_sequential_successes").(int)
var successCount int
// begin validate_creds retry loop
Expand Down Expand Up @@ -280,7 +280,7 @@ func azureAccessCredentialsDataSourceRead(ctx context.Context, d *schema.Resourc
if time.Now().After(endTime) {
return diag.Errorf(
"validation failed after max_cred_validation_seconds of %d, giving up; now=%s, endTime=%s",
maxValidationDuration,
maxValidationSeconds,
time.Now().String(),
endTime.String(),
)
Expand Down

0 comments on commit da62806

Please sign in to comment.