Skip to content

Commit

Permalink
PR jantman#366 - make order match between _construct_limits and _upda…
Browse files Browse the repository at this point in the history
…te_limits_from_api because I'm horribly pedantic
  • Loading branch information
jantman authored and nadlerjessie committed Feb 16, 2019
1 parent 76e97e8 commit 25c5eaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions awslimitchecker/services/lambdafunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,16 @@ def _update_limits_from_api(self):
return
self.connect()
lims = self.conn.get_account_settings()['AccountLimit']
self.limits['Code Size Unzipped (MiB)']._set_api_limit(
(lims['CodeSizeUnzipped']/1048576))
self.limits['Code Size Zipped (MiB)']._set_api_limit(
(lims['CodeSizeZipped']/1048576))
self.limits['Total Code Size (GiB)']._set_api_limit(
(lims['TotalCodeSize']/1048576/1024))
self.limits['Code Size Unzipped (MiB)']._set_api_limit(
(lims['CodeSizeUnzipped']/1048576))
self.limits['Unreserved Concurrent Executions']._set_api_limit(
lims['UnreservedConcurrentExecutions'])
self.limits['Concurrent Executions']._set_api_limit(
lims['ConcurrentExecutions'])
self.limits['Code Size Zipped (MiB)']._set_api_limit(
(lims['CodeSizeZipped']/1048576))

def _construct_limits(self):
self.limits = {}
Expand Down

0 comments on commit 25c5eaa

Please sign in to comment.