Skip to content

Commit a5e6bce

Browse files
committed
updated the message
1 parent 07b72e2 commit a5e6bce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/add/accessRestriction/accessRestriction.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func addIpOrIpRange(allowedip string, deniedip string) error {
200200
}
201201
}
202202
if len(AddIPs.DeniedIPs) > 0 {
203-
if err := prompt.Confirm("Adding IP or IP Range to Allowed IP or IP Range will result in the deletion of all Denied IP or IP Range. Are you sure you want to proceed?",
203+
if err := prompt.Confirm("Denied IP or IP range configuration exists. Adding IP or IP range to the Allowed list will remove the existing denied IP or IP range. Are you sure you want to proceed?",
204204
&shouldAdd); err != nil {
205205
return err
206206
}
@@ -220,7 +220,7 @@ func addIpOrIpRange(allowedip string, deniedip string) error {
220220

221221
if len(AddIPs.AllowedIPs) > 0 {
222222

223-
if err := prompt.Confirm("Adding IP or IP Range to Denied IP or IP Range will result in the deletion of all Allowed IP or IP Range. Are you sure you want to proceed?",
223+
if err := prompt.Confirm("Allowed IP or IP range configuration exists. Adding IP or IP range to the Denied list will remove the existing allowed IP or IP range. Are you sure you want to proceed?",
224224
&shouldAdd); err != nil {
225225
return err
226226
}

0 commit comments

Comments
 (0)