Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions warp10client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def _get_delete_query(self, metric):
]
return "?{}".format('&'.join(params))


def _get_url(self, call_type='fetch', **kwargs):
query = str()

Expand Down Expand Up @@ -270,6 +269,7 @@ def _call(self, call_type='fetch', **kwargs):

try:
data = self._gen_request_body(call_type=call_type, **kwargs)
data = data.replace("+", "%20")
except Exception as e:
raise CallException('Failed to prepare request.\n'
'Error: %s\n'
Expand Down Expand Up @@ -366,8 +366,8 @@ def _get_warp10_script_tags(self, metric):
tags = metric.get('tags')
# Cook string like "{ 'key1' 'value' 'key2' 'value2' ...}"
w_s = '{{ {} }}'.format(' '.join("'%s' '%s'" %
(t_k, t_v) for t_k, t_v in
six.iteritems(tags) if t_v))
(t_k, t_v) for t_k, t_v in
six.iteritems(tags) if t_v))
return w_s

def _gen_fetch_script(self, metric):
Expand Down