Skip to content

Commit

Permalink
Fixing iteration.
Browse files Browse the repository at this point in the history
  • Loading branch information
ranrib committed May 4, 2018
1 parent 2fd713a commit 1e89614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion list_lambdas.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def print_lambda_list(args):
next_marker = None
response = lambda_client.list_functions()
while next_marker != '':
next_marker = ''
functions = response['Functions']
if not functions:
continue
Expand Down Expand Up @@ -196,7 +197,6 @@ def print_lambda_list(args):
})

# Verify if there is next marker
next_marker = ''
if 'NextMarker' in response:
next_marker = response['NextMarker']
response = lambda_client.list_functions(Marker=next_marker)
Expand Down

0 comments on commit 1e89614

Please sign in to comment.