Skip to content

Commit

Permalink
[AIRFLOW-4763] Allow list in DockerOperator.command (#5408)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2b94600)
  • Loading branch information
akki authored and kaxil committed Aug 20, 2019
1 parent e2d3af2 commit 1731d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/operators/docker_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def execute(self, context):
if self.xcom_all else str(line)

def get_command(self):
if self.command is not None and self.command.strip().find('[') == 0:
if isinstance(self.command, str) and self.command.strip().find('[') == 0:
commands = ast.literal_eval(self.command)
else:
commands = self.command
Expand Down

0 comments on commit 1731d2d

Please sign in to comment.