Merge "Use podman interactive mode when restoring db"

This commit is contained in:
Zuul 2021-06-09 01:34:18 +00:00 committed by Gerrit Code Review
commit 6def2b9b0b
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ class HeatPodLauncher(HeatContainerLauncher):
try: try:
with open(db_dump_path) as f: with open(db_dump_path) as f:
subprocess.run([ subprocess.run([
'sudo', 'podman', 'exec', '-u', 'root', 'sudo', 'podman', 'exec', '-i', '-u', 'root',
'mysql', 'mysql', 'heat'], stdin=f, 'mysql', 'mysql', 'heat'], stdin=f,
check=True) check=True)
finally: finally: