Skip to content

Commit

Permalink
Allow to use os-oauth with olm installer (#713)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
  • Loading branch information
tolusha authored May 19, 2020
1 parent 0b386ae commit 3f5296c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/server/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ export default class Start extends Command {
if (flags.platform !== 'openshift' && flags.platform !== 'minishift' && flags.platform !== 'crc') {
this.error(`You requested to enable OpenShift OAuth but the platform doesn\'t seem to be OpenShift. Platform is ${flags.platform}.`)
}
if (flags.installer !== 'operator') {
this.error(`You requested to enable OpenShift OAuth but that's only possible when using the operator as installer. The current installer is ${flags.installer}. To use the operator add parameter "--installer operator".`)
if (flags.installer !== 'operator' && flags.installer !== 'olm') {
this.error(`You requested to enable OpenShift OAuth but that's only possible when using the 'operator' or 'olm' as installer. The current installer is ${flags.installer}.`)
}
}

Expand Down

0 comments on commit 3f5296c

Please sign in to comment.