From 30de8e81c136b56355fb71d7bea4b28dbf8b2215 Mon Sep 17 00:00:00 2001 From: Shirshanka Das Date: Sun, 24 Jul 2022 23:10:31 -0700 Subject: [PATCH] fix lint for 3.6 --- metadata-ingestion/src/datahub/cli/docker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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}"