Convert not_before_duration to seconds before returning it (#15559)
* Convert not_before_duration to seconds before returning it * changelog file
This commit is contained in:
parent
7da2085fa3
commit
3e569ed186
|
@ -757,7 +757,7 @@ func (b *backend) parseRole(role *sshRole) (map[string]interface{}, error) {
|
|||
"default_extensions_template": role.DefaultExtensionsTemplate,
|
||||
"allowed_user_key_lengths": role.AllowedUserKeyTypesLengths,
|
||||
"algorithm_signer": role.AlgorithmSigner,
|
||||
"not_before_duration": role.NotBeforeDuration,
|
||||
"not_before_duration": int64(role.NotBeforeDuration.Seconds()),
|
||||
}
|
||||
case KeyTypeDynamic:
|
||||
result = map[string]interface{}{
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
secrets/ssh: Convert role field not_before_duration to seconds before returning it
|
||||
```
|
Loading…
Reference in New Issue