MCPcopy Create free account
hub / github.com/Netflix/bless / setup_lambda_cache

Function setup_lambda_cache

bless/aws_lambda/bless_lambda_common.py:65–75  ·  view source on GitHub ↗
(ca_private_key_password, config_file)

Source from the content-addressed store, hash-verified

63
64
65def 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

Callers 2

lambda_handler_hostFunction · 0.90
lambda_handler_userFunction · 0.90

Calls 1

BlessLambdaCacheClass · 0.90

Tested by

no test coverage detected