Skip to content

Commit

Permalink
updates pickup-id validators to proper variable
Browse files Browse the repository at this point in the history
  • Loading branch information
luispresuelVenafi committed Jun 3, 2024
1 parent 04255b7 commit 690f6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/vcert/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ func validateProvisionFlags(commandName string) error {
}

if flags.pickupIDFile != "" {
if flags.pickupID != "" {
if flags.provisionPickupID != "" {
return fmt.Errorf("both --pickup-id and --pickup-id-file options cannot be specified at the same time")
}
if flags.certificateID != "" {
Expand All @@ -746,7 +746,7 @@ func validateProvisionFlags(commandName string) error {
}

if flags.certificateIDFile != "" {
if flags.pickupID != "" {
if flags.provisionPickupID != "" {
return fmt.Errorf("both --certificate-id and --pickup-id-file options cannot be specified at the same time")
}
if flags.certificateID != "" {
Expand Down

0 comments on commit 690f6b4

Please sign in to comment.