(ca_private_key_password, config_file)
| 63 | |
| 64 | |
| 65 | def setup_lambda_cache(ca_private_key_password, config_file): |
| 66 | # For testing, ignore the static bless_cache, otherwise fill the cache one time. |
| 67 | global global_bless_cache |
| 68 | if ca_private_key_password is not None or config_file is not None: |
| 69 | bless_cache = BlessLambdaCache(ca_private_key_password, config_file) |
| 70 | elif global_bless_cache is None: |
| 71 | global_bless_cache = BlessLambdaCache(config_file=os.path.join(os.getcwd(), 'bless_deploy.cfg')) |
| 72 | bless_cache = global_bless_cache |
| 73 | else: |
| 74 | bless_cache = global_bless_cache |
| 75 | return bless_cache |
no test coverage detected