Skip to content

Commit

Permalink
[OPS-901] Fix Secrets Versioning
Browse files Browse the repository at this point in the history
- Secret version should be unix milli but was timestamp
  • Loading branch information
Eli Fabens committed Aug 3, 2021
1 parent 767a146 commit f3a5feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ func (c *ToznySDKV3) CreateSecret(ctx context.Context, secretDetails CreateSecre
SecretName: secretDetails.SecretName,
}
recordType := GetRecordType(recordTypeOptions)
timestamp := time.Now().String()
timestamp := fmt.Sprintf("%d", time.Now().UnixNano()/int64(time.Millisecond))
plain := map[string]string{
"secretType": secretDetails.SecretType,
"secretName": secretDetails.SecretName,
Expand Down

0 comments on commit f3a5feb

Please sign in to comment.