From 445b976a85b21913fd53a357190b2e0f5b479d9d Mon Sep 17 00:00:00 2001 From: Mike O'Brien Date: Thu, 12 Nov 2020 11:25:14 -0500 Subject: [PATCH 1/2] pass dict params to archiver --- _delphi_utils_python/delphi_utils/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_delphi_utils_python/delphi_utils/archive.py b/_delphi_utils_python/delphi_utils/archive.py index 84f22f03d..9f0452351 100644 --- a/_delphi_utils_python/delphi_utils/archive.py +++ b/_delphi_utils_python/delphi_utils/archive.py @@ -588,8 +588,8 @@ def archive_exports(self, exported_files: Files) -> Tuple[Files, Files]: args = parser.parse_args() params = read_params() run_module(args.archive_type, - params.cache_dir, - params.export_dir, + params["cache_dir"], + params["export_dir"], aws_credentials=params.aws_credentials, branch_name=args.branch_name, bucket_name=params.bucket_name, From 31972e2b5be83b0b2306693d8b26942f7e59ef3d Mon Sep 17 00:00:00 2001 From: Mike O'Brien Date: Thu, 12 Nov 2020 11:54:27 -0500 Subject: [PATCH 2/2] get missed params references --- _delphi_utils_python/delphi_utils/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_delphi_utils_python/delphi_utils/archive.py b/_delphi_utils_python/delphi_utils/archive.py index 9f0452351..42f2ab4f3 100644 --- a/_delphi_utils_python/delphi_utils/archive.py +++ b/_delphi_utils_python/delphi_utils/archive.py @@ -590,9 +590,9 @@ def archive_exports(self, exported_files: Files) -> Tuple[Files, Files]: run_module(args.archive_type, params["cache_dir"], params["export_dir"], - aws_credentials=params.aws_credentials, + aws_credentials=params["aws_credentials"], branch_name=args.branch_name, - bucket_name=params.bucket_name, + bucket_name=params["bucket_name"], commit_message=args.commit_message, commit_partial_success=args.commit_partial_success, indicator_prefix=args.indicator_prefix,