Skip to content

Commit

Permalink
#526 fixed style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Adetunji Akintunde Akinde committed Jul 20, 2018
1 parent b094882 commit b906515
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions senza/traffic.py
Expand Up @@ -49,8 +49,8 @@ def get_weights(dns_names: list, identifier: str, all_identifiers) -> ({str: int
known_record_weights[record.set_identifier] = weight

partial_count, partial_sum = get_partial_sum_partial_count(dns_names,
identifier,
all_identifiers)
identifier,
all_identifiers)
if identifier not in known_record_weights:
known_record_weights[identifier] = 0
for ident in all_identifiers:
Expand Down Expand Up @@ -78,6 +78,7 @@ def get_partial_sum_partial_count(dns_names: list, identifier: str, all_identifi

return partial_count, partial_sum


def calculate_new_weights(delta, identifier, known_record_weights, percentage):
"""
Calculates the new weights for the all the Route53 records
Expand Down

0 comments on commit b906515

Please sign in to comment.