Skip to content

Commit

Permalink
[fix] Autorotate policy was send as empty struct when disabled
Browse files Browse the repository at this point in the history
When EnableAutoRotatePolicy and FrequencyInDays are respectively false
and 0 AutoRotateCredentialPolicyInputSpec was serialized as empty object
causing API error. This servers the case when the autorotate policy for
credential has to be disabled i.e. EnableAutoRotatePolicy is false.
Having the omitempty attrbute does not send the value over the wire.

Signed-off-by: Vasil Atanasov <vasila@vmware.com>
  • Loading branch information
vasilsatanasov committed Dec 4, 2023
1 parent 3659c4c commit 39b443b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/auto_rotate_credential_policy_input_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 39b443b

Please sign in to comment.