Skip to content

Commit ebcd89d

Browse files
committed
Merge branch 'add_password_to_rclone_config_for_aws_gdrive' of github.com:neuroinformatics-unit/datashuttle into add_password_to_rclone_config_for_aws_gdrive
2 parents b1a5032 + f5f44da commit ebcd89d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

datashuttle/configs/rclone_configs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class RCloneConfigs:
2121
the GDrive rclone config holds the access token, etc.
2222
2323
In datashuttle, local filesystem configs uses the Rclone default configuration file,
24-
that RClone manages, for backwards comatability reasons. However, SSH, AWS and GDrive
24+
that RClone manages, for backwards compatibility reasons. However, SSH, AWS and GDrive
2525
configs are stored in separate config files (set using RClone's --config argument).
2626
Then being separate means these files can be separately encrypted.
2727
@@ -94,7 +94,7 @@ def set_rclone_config_encryption_state(self, value: bool) -> None:
9494

9595
def rclone_file_is_encrypted(
9696
self,
97-
) -> dict:
97+
) -> bool:
9898
"""Return whether the config file associated with the current `connection_method`."""
9999
assert rclone_encryption.connection_method_requires_encryption(
100100
self.datashuttle_configs["connection_method"]

datashuttle/utils/rclone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def call_rclone_with_popen(
145145
Killing a process might be required when running rclone setup in a thread worker
146146
to allow the user to cancel the setup process. In such a case, cancelling the
147147
thread worker alone will not kill the rclone process, so we need to kill the
148-
env process explicitly.
148+
process explicitly.
149149
"""
150150
command = "rclone " + command
151151
process = subprocess.Popen(

datashuttle/utils/rclone_encryption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def run_rclone_config_encrypt(cfg: Configs) -> None:
234234
raise RuntimeError(
235235
f"\n--- STDOUT ---\n{output.stdout}\n"
236236
f"\n--- STDERR ---\n{output.stderr}\n"
237-
"Could not remove the password from the RClone config. See the error message above."
237+
"Could not encrypt the RClone config. See the error message above."
238238
)
239239

240240
remove_credentials_as_password_command()
@@ -336,7 +336,7 @@ def get_explanation_message(
336336

337337
pass_type = {
338338
"ssh": "your private SSH key",
339-
"aws": "your IAM access key ID and seceret access key",
339+
"aws": "your IAM access key ID and secret access key",
340340
"gdrive": "your Google Drive access token and client secret (if set)",
341341
}
342342

tests/tests_transfers/ssh/test_ssh_transfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_ssh_wildcards_3(self, ssh_setup):
160160
)
161161

162162
def test_rclone_config_file_encrypted(self, ssh_setup):
163-
"""Quick confidence check the set up rclone config is indeed ecrypted."""
163+
"""Quick confidence check the set up rclone config is indeed encrypted."""
164164
pathtable, project = ssh_setup
165165

166166
test_utils.check_rclone_file_is_encrypted(

0 commit comments

Comments
 (0)