Closed Bug 1801696 Opened 1 year ago Closed 1 year ago

Running `install-certificate` prompts user twice if there is no existing token

Categories

(Conduit :: moz-phab, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zeid, Assigned: sheehan)

Details

(Keywords: conduit-triaged)

Attachments

(1 file)

STR:

Expected behaviour:

  • run moz-phab install-certificate
  • get prompted to enter API token
  • enter API token
  • return to shell prompt

Actual behaviour:

  • run moz-phab install-certificate
  • moz-phab prompts use to enter API token saying that "No API token detected, running install-certificate"
  • user enters token
  • user gets prompted again to enter API token, this time presumably as part of running the original command.

Potential fix:

  • detect that the user is trying to install token, thus skip the check for existing token.
Keywords: conduit-triaged

Move loading of the Conduit API token to a function. Add a
conditional to avoid loading the token or auto-running
install-certificate when the user has explicitly run
that command.

Assignee: nobody → sheehan
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: