Skip to content

Commit c0083e4

Browse files
authored
[CBR] Fix vault UpdateOpts.VaultBindRules type (#95)
[CBR] Fix vault `UpdateOpts.VaultBindRules` type What this PR does / why we need it UpdateOpts.VaultBindRules are defined as []VaultBindRules instead of *VaultBindRules Doc reference: https://docs.otc.t-systems.com/en-us/api/cbr/UpdateVault.html Reviewed-by: Anton Sidelnikov <None> Reviewed-by: Rodion Gyrbu <[email protected]> Reviewed-by: None <None>
1 parent b669075 commit c0083e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

openstack/cbr/v3/vaults/requests.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ type BillingUpdate struct {
157157
}
158158

159159
type UpdateOpts struct {
160-
Billing *BillingUpdate `json:"billing,omitempty"`
161-
Name string `json:"name,omitempty"`
162-
AutoBind *bool `json:"auto_bind,omitempty"`
163-
BindRules []VaultBindRules `json:"bind_rules,omitempty"`
164-
AutoExpand *bool `json:"auto_expand,omitempty"`
160+
Billing *BillingUpdate `json:"billing,omitempty"`
161+
Name string `json:"name,omitempty"`
162+
AutoBind *bool `json:"auto_bind,omitempty"`
163+
BindRules *VaultBindRules `json:"bind_rules,omitempty"`
164+
AutoExpand *bool `json:"auto_expand,omitempty"`
165165
}
166166

167167
func (opts UpdateOpts) ToVaultUpdateMap() (map[string]interface{}, error) {

0 commit comments

Comments
 (0)