Skip to content

Commit 2a8f66d

Browse files
author
Dirk Petersen (aider)
committed
fix: align parameter names between method definitions and calls
1 parent 07eebbc commit 2a8f66d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: froster/froster.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,11 @@ def __init__(self, use_profile=None):
278278
self.froster_profile, 'storage_class', fallback=None)
279279

280280
# Get the region
281-
self.region = self.get_region(aws_profile=self.aws_profile)
281+
self.region = self.get_region(credentials_profile=self.aws_profile)
282282

283283
# Get the S3 endpoint
284284
self.endpoint = self.get_endpoint(
285-
aws_profile=self.aws_profile)
285+
credentials_profile=self.aws_profile)
286286

287287
# Slurm configuration
288288
self.slurm_walltime_days = config.get(
@@ -1619,7 +1619,7 @@ def __init__(self, args: argparse.Namespace, cfg: ConfigManager, arch: "Archiver
16191619

16201620
self.is_session_set = False
16211621

1622-
self.set_session(credentials_profile=cfg.credentials,
1622+
self.set_session(credentials_profile=cfg.aws_profile,
16231623
region=cfg.region,
16241624
endopoint_url=cfg.endpoint)
16251625

@@ -1903,9 +1903,9 @@ def set_session(self, credentials_profile, region, endopoint_url):
19031903

19041904
# Get the AWS credentials
19051905
aws_access_key_id = self.cfg.get_credential(
1906-
credentials_profile=credentials_profile, key_name='aws_access_key_id')
1906+
aws_profile=credentials_profile, key_name='aws_access_key_id')
19071907
aws_secret_access_key = self.cfg.get_credential(
1908-
credentials_profile=credentials_profile, key_name='aws_secret_access_key')
1908+
aws_profile=credentials_profile, key_name='aws_secret_access_key')
19091909

19101910
if not aws_access_key_id or not aws_secret_access_key:
19111911
return

0 commit comments

Comments
 (0)