mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Fix setup CLI (#121124)
This commit is contained in:
parent
303a82f2d3
commit
44e1445042
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ program
|
|||
program.parse(process.argv);
|
||||
|
||||
interface SetupOptions {
|
||||
token?: string;
|
||||
enrollmentToken?: string;
|
||||
silent?: boolean;
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ const logger = new Logger(options);
|
|||
|
||||
async function initCommand() {
|
||||
const token = decodeEnrollmentToken(
|
||||
options.token ?? (options.silent ? undefined : await promptToken())
|
||||
options.enrollmentToken ?? (options.silent ? undefined : await promptToken())
|
||||
);
|
||||
if (!token) {
|
||||
logger.error(chalk.red('Invalid enrollment token provided.'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue