Skip to content

Commit c12986f

Browse files
authored
CLOUDP-285714: Remove apiKey field from PagerDuty Atlas CLI (#3408)
1 parent 4c51ade commit c12986f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cli/alerts/settings/validator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ func validateOpsGenie(opts *ConfigOpts) error {
9191
}
9292

9393
func validatePagerDuty(opts *ConfigOpts) error {
94-
if opts.apiKey == "" {
95-
return fmt.Errorf("--%s is required when --%s is PAGER_DUTY", flag.APIKey, flag.NotificationType)
94+
if opts.notificationServiceKey == "" || opts.notificationRegion == "" {
95+
return fmt.Errorf("--%s and --%s are required when --%s is PAGER_DUTY", flag.NotificationServiceKey, flag.NotificationRegion, flag.NotificationType)
9696
}
9797
return nil
9898
}

0 commit comments

Comments
 (0)