Skip to content

Commit

Permalink
fix iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
karmeleon committed Oct 11, 2024
1 parent 08b222a commit ef31617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paasta_tools/contrib/service_shard_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ def main(args):
}

# remove any None values to keep the config clean
for resource in limit_config:
for key in limit_config[resource]:
for resource in list(limit_config):
for key in list(limit_config[resource]):
if limit_config[resource][key] is None:
del limit_config[resource][key]
if len(limit_config[resource]) == 0:
Expand Down

0 comments on commit ef31617

Please sign in to comment.