Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed internal server error when enabling keycloak on existing installation #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,33 @@ def _init(self):
)
def _setup_keycloak_ovirt_admin_credentials(self):
password = None
if self.environment[oenginecons.ConfigEnv.ADMIN_PASSWORD] is not None:
use_engine_admin_password = dialog.queryBoolean(
if self.environment[oenginecons.ConfigEnv.ADMIN_PASSWORD] is None:
engine_admin_password = dialog.queryPassword(
dialog=self.dialog,
name='KEYCLOAK_USE_ENGINE_ADMIN_PASSWORD',
logger=self.logger,
env=self.environment,
key=oengcommcons.ConfigEnv.ADMIN_PASSWORD,
note=_(
f"Use Engine admin password as initial "
f"keycloak admin password "
f"(@VALUES@) [@DEFAULT@]: "
f'Engine [admin] password: '
),
prompt=True,
default=True
)
if use_engine_admin_password:
password = self.environment[
oenginecons.ConfigEnv.ADMIN_PASSWORD
]
self.environment[oengcommcons.ConfigEnv.ADMIN_PASSWORD] = engine_admin_password

use_engine_admin_password = dialog.queryBoolean(
dialog=self.dialog,
name='KEYCLOAK_USE_ENGINE_ADMIN_PASSWORD',
note=_(
f"Use Engine admin password as initial "
f"keycloak admin password "
f"(@VALUES@) [@DEFAULT@]: "
),
prompt=True,
default=True
)
if use_engine_admin_password:
password = self.environment[
oenginecons.ConfigEnv.ADMIN_PASSWORD
]

if password is None:
password = dialog.queryPassword(
Expand Down
Loading