fix: support empty spaces in superset passwords

Close #2.
This commit is contained in:
Régis Behmo 2023-06-02 09:54:54 +02:00
parent f739588be4
commit 6f3637e34f
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
- [Bugfix] Support Superset passwords that include an empty space. (by @regisb)

View File

@ -1,6 +1,7 @@
from __future__ import annotations
from glob import glob
import os
import shlex
import typing as t
import click
@ -131,7 +132,7 @@ def create_user_command(
("cairn-clickhouse", f"cairn createuser {username}"),
(
"cairn-superset",
f"cairn createuser{admin_opt} --password={password} {username} {email}",
f"cairn createuser{admin_opt} --password {shlex.quote(password)} {username} {email}",
),
]
if bootstrap_dashboards: