diff --git a/metadata-ingestion/src/datahub/cli/docker.py b/metadata-ingestion/src/datahub/cli/docker.py index 06475af9fd2a9b..92f77bd4a6d0fe 100644 --- a/metadata-ingestion/src/datahub/cli/docker.py +++ b/metadata-ingestion/src/datahub/cli/docker.py @@ -260,7 +260,6 @@ def _restore( stdin=fp, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - text=True, ) if result.returncode != 0: logger.error("Failed to run MySQL restore") @@ -327,7 +326,7 @@ def _restore( ) logger.info(f"Running index restore command: {command}") result = subprocess.run( - [ + args=[ "bash", "-c", "docker pull acryldata/datahub-upgrade:" @@ -338,7 +337,6 @@ def _restore( ], stdout=subprocess.PIPE, stderr=subprocess.PIPE, - text=True, ) logger.info( f"Index restore command finished with status {result.returncode}"