Skip to content

Commit

Permalink
Fix access_key creation bug
Browse files Browse the repository at this point in the history
fixed #342
  • Loading branch information
outscale-toa committed Apr 21, 2023
1 parent bf15f80 commit 8e13a2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion outscale/resource_outscale_access_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ func resourceOutscaleAccessKeyCreate(d *schema.ResourceData, meta interface{}) e
if err = checkDateFormat(expirDate); err != nil {
return err
}
req.ExpirationDate = &expirDate
}
req.ExpirationDate = &expirDate

var resp oscgo.CreateAccessKeyResponse
err = resource.Retry(5*time.Minute, func() *resource.RetryError {
rp, httpResp, err := conn.AccessKeyApi.CreateAccessKey(context.Background()).CreateAccessKeyRequest(req).Execute()
Expand Down

0 comments on commit 8e13a2c

Please sign in to comment.