Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Ignore auth failures when trying to pull apps during cli login (#2366)
Browse files Browse the repository at this point in the history
Signed-off-by: Oscar Ward <oscar@acorn.io>
  • Loading branch information
Oscar Ward authored Dec 4, 2023
1 parent 62927ea commit ea6b20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/credential_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (a *CredentialLogin) Run(cmd *cobra.Command, args []string) error {
app, err := c.AppGet(cmd.Context(), args[0])
if err == nil {
return login.Secrets(cmd.Context(), c, app)
} else if !apierrors.IsNotFound(err) {
} else if !(apierrors.IsNotFound(err) || apierrors.IsForbidden(err)) {
return err
}
}
Expand Down

0 comments on commit ea6b20a

Please sign in to comment.