Skip to content

Commit

Permalink
Only create on boto3 client
Browse files Browse the repository at this point in the history
  • Loading branch information
jfuss committed May 21, 2019
1 parent dff9fe4 commit 73c20a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samcli/local/layers/layer_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def __init__(self, layer_cache, cwd, lambda_client=None):

@property
def lambda_client(self):
return self._lambda_client or boto3.client('lambda')
self._lambda_client = self._lambda_client or boto3.client('lambda')
return self._lambda_client

@property
def layer_cache(self):
Expand Down

0 comments on commit 73c20a6

Please sign in to comment.