Skip to content

Commit

Permalink
fix: spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed May 30, 2024
1 parent a610b74 commit 88586bf
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 @@ -354,7 +354,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 @@ -567,7 +567,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 @@ -582,7 +582,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 @@ -664,7 +664,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 88586bf

Please sign in to comment.