File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ type UpdateAccountParams struct {
578
578
MustChangePassword * bool `json:"must_change_password,omitempty"`
579
579
NewEmail * string `json:"new_email,omitempty"`
580
580
ForceMd5Etag * bool `json:"force_md5_etag,omitempty"`
581
- AllowedIPs []struct {
581
+ AllowedIPs * []struct {
582
582
Start string `json:"start"`
583
583
End string `json:"end"`
584
584
} `json:"ips,omitempty"`
Original file line number Diff line number Diff line change @@ -82,14 +82,11 @@ func RunAssign(cmd *cobra.Command, args []string) {
82
82
if err != nil {
83
83
log .Fatalf ("❌ Failed to parse role config - %s" , err )
84
84
}
85
- readAccountParams := nb.ReadAccountParams {Email : email }
86
- accountInfo , err := NBClient .ReadAccountAPI (readAccountParams )
87
85
if err != nil {
88
86
log .Fatalf (`❌ Failed to read account - %s` , err )
89
87
}
90
88
UpdateAccountParams := nb.UpdateAccountParams {
91
89
Email : email ,
92
- AllowedIPs : accountInfo .AllowedIPs ,
93
90
RoleConfig : roleConfigObject ,
94
91
}
95
92
@@ -109,12 +106,8 @@ func RunRemove(cmd *cobra.Command, args []string) {
109
106
}
110
107
NBClient := sysClient .NBClient
111
108
112
- readAccountParams := nb.ReadAccountParams {Email : email }
113
- accountInfo , _ := NBClient .ReadAccountAPI (readAccountParams )
114
-
115
109
UpdateAccountParams := nb.UpdateAccountParams {
116
110
Email : email ,
117
- AllowedIPs : accountInfo .AllowedIPs ,
118
111
RemoveRoleConfig : true ,
119
112
}
120
113
You can’t perform that action at this time.
0 commit comments