Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Modified line 402 for redability
Browse files Browse the repository at this point in the history
  • Loading branch information
asuresh4 committed Aug 16, 2017
1 parent 0934058 commit 51bbbc0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions etcd_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,8 @@ def transform_text_to_metrics(response, metrics):
dimensions = ''
if len(name_and_dimensions) > 1:
name = name_and_dimensions[0]
dimensions = name_and_dimensions[1].replace(
'}',
'').replace(
'\"',
'')
dimensions = \
name_and_dimensions[1].replace('}', '').replace('\"', '')
if name in metrics:
metrics[name].update({
'value': float(str(formatted[1])),
Expand Down

0 comments on commit 51bbbc0

Please sign in to comment.