Skip to content

Commit

Permalink
fix: spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed Aug 13, 2024
1 parent 2613fa8 commit 0f3a26f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agent/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def restore_site_tables(self):
output = self.execute(
"set -o pipefail && "
f"gunzip -c '{backup_file_path}' | "
f"mysql -h {self.host} -u {self.user} -p{self.password} -P {self.port}"
f"mysql -h {self.host} -u {self.user} -p{self.password} -P {self.port} "
f"{self.database}",
executable="/bin/bash",
)
Expand Down Expand Up @@ -572,7 +572,7 @@ def restore_touched_tables(self):
output = self.execute(
"set -o pipefail && "
f"gunzip -c '{backup_file}' | "
f"mysql -h {self.host} -u {self.user} -p{self.password} -P {self.port}"
f"mysql -h {self.host} -u {self.user} -p{self.password} -P {self.port} "
f"{self.database}",
executable="/bin/bash",
)
Expand All @@ -587,7 +587,7 @@ def drop_new_tables(self):
data = {"dropped": {}}
for table in new_tables:
output = self.execute(
f"mysql -h {self.host} -u {self.user} -p{self.password} -P {self.port}"
f"mysql -h {self.host} -u {self.user} -p{self.password} -P {self.port} "
f"{self.database} -e 'DROP TABLE `{table}`'"
)
data["dropped"][table] = output
Expand Down Expand Up @@ -669,7 +669,7 @@ def timezone(self):
)
try:
timezone = self.execute(
f"mysql -h {self.host} -u{self.database} -p{self.password} -P {self.port}"
f"mysql -h {self.host} -u{self.database} -p{self.password} -P {self.port} "
f'-sN -e "{query}"'
)["output"].strip()
except Exception:
Expand Down

0 comments on commit 0f3a26f

Please sign in to comment.