Skip to content

Commit

Permalink
Fix mysql.dump() (pyinfra-dev#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhammes authored and Fizzadar committed Aug 10, 2024
1 parent ab3f20c commit 60eedb8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pyinfra/operations/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def dump(
)
"""

yield "{0} > {1}".format(
commands_bits = [
make_mysql_command(
executable="mysqldump",
database=database,
Expand All @@ -563,8 +563,11 @@ def dump(
host=mysql_host,
port=mysql_port,
),
dest,
)
">",
QuoteString(dest),
]

yield StringCommand(*commands_bits)


@operation(is_idempotent=False)
Expand Down

0 comments on commit 60eedb8

Please sign in to comment.