Skip to content

Commit

Permalink
fix false weight name
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo committed Jun 10, 2020
1 parent ef0a627 commit 4da1fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_usage_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def main():
try:
weight_response = requests.get(args.weight_update_endpoint)
current_weights = {
x['resource_set_timestamp']: {'memory_mb': {y['value']: y['weight'] for y in x['mb_usage']},
x['resource_set_timestamp']: {'memory_mb': {y['value']: y['weight'] for y in x['memory_mb']},
'vcpus': {y['value']: y['weight'] for y in x['vcpus']}} for
x in weight_response.json()}
logging.info("Updated credits weights, new weights: " + str(current_weights))
Expand Down

0 comments on commit 4da1fc0

Please sign in to comment.