Skip to content

Commit bcded89

Browse files
author
Wiktor Maj
authored
Merge branch 'master' into fix/51-cleanup-pyc-files
2 parents 203e23a + af601d8 commit bcded89

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828

2929
* Fixed `run_mysql_server()` not instantiating `MySQLServer` class. (#94)
3030
* Disabled MD060 markdownlint rule to fix table column style false positives in documentation. (#94)
31+
* Made `create_directory()` idempotent to support deployment re-runs. (#35)
3132
* Added default inventory directive to `ansible.cfg`. (#42)
3233
* Fixed Publish workflow `write_package` permission denied by adding OCI source labels for GHCR repository linking. (#99)
3334

src/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def upload_directory(self, local_directory_path: str, remote_directory_path: str
154154
self.sftp_client.put(local_item_path, remote_item_path)
155155

156156
def create_directory(self, remote_directory_path: str) -> None:
157-
self.sftp_client.mkdir(remote_directory_path)
157+
self.ssh_client.exec_command(f"mkdir -p {remote_directory_path}")
158158

159159
def upload_file(self, content: str | bytes, remote_file_path: str) -> None:
160160
if isinstance(content, str):

0 commit comments

Comments
 (0)