From 50eb2a10ad5cb57ddac783cb6d2597cff565fc7a Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 2 Mar 2019 15:38:46 -0800 Subject: [PATCH] Fixes redis password saving, closes #1428 --- CHANGELOG.md | 1 + app/Console/Commands/Environment/AppSettingsCommand.php | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0549a80cb..b3cd8f8b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. * Fixes a bug with the location update API endpoint throwing an error due to an unexected response value. * Fixes bug where node creation API endpoint was not correctly requiring the `disk_overallocate` key. * Prevents an exception from being thrown when a database with the same name is created on two different hosts. +* Fixes the redis password not saving correctly when setting up the environment from the command line. ### Changed * `allocation_limit` for servers now defaults to a null value, and is not required in PATCH/POST requests when adding diff --git a/app/Console/Commands/Environment/AppSettingsCommand.php b/app/Console/Commands/Environment/AppSettingsCommand.php index 6b9bce37d..9a10bfd0d 100644 --- a/app/Console/Commands/Environment/AppSettingsCommand.php +++ b/app/Console/Commands/Environment/AppSettingsCommand.php @@ -178,9 +178,7 @@ class AppSettingsCommand extends Command if ($askForRedisPassword) { $this->output->comment(trans('command/messages.environment.app.redis_pass_help')); $this->variables['REDIS_PASSWORD'] = $this->option('redis-pass') ?? $this->output->askHidden( - trans('command/messages.environment.app.redis_password'), function () { - return ''; - } + trans('command/messages.environment.app.redis_password') ); }