Commit 35773a35 authored by Béla Vancsics's avatar Béla Vancsics

Remove unused variable

I removed the unused variables in code

Change-Id: Ie2250ae28e0ffaf97c92205d5e2f2da38c9afef1
parent d3c485c0
......@@ -385,7 +385,7 @@ def deserialize_entry(entry, get_raw_meta=True):
else:
metadata = metadata_flattened
return flatten_result, sources, meters, metadata
return flatten_result, meters, metadata
def serialize_entry(data=None, **kwargs):
......
......@@ -214,7 +214,7 @@ class Connection(hbase_base.Connection, base.Connection):
LOG.debug("Query Resource table: %s", q)
for resource_id, data in resource_table.scan(filter=q,
limit=limit):
f_res, sources, meters, md = hbase_utils.deserialize_entry(
f_res, meters, md = hbase_utils.deserialize_entry(
data)
resource_id = hbase_utils.encode_unicode(resource_id)
# Unfortunately happybase doesn't keep ordered result from
......@@ -230,7 +230,7 @@ class Connection(hbase_base.Connection, base.Connection):
row = resource_table.row(
resource_id, columns=['f:project_id', 'f:user_id',
'f:resource_metadata'])
f_res, _s, _m, md = hbase_utils.deserialize_entry(row)
f_res, _m, md = hbase_utils.deserialize_entry(row)
yield models.Resource(
resource_id=resource_id,
first_sample_timestamp=first_ts,
......@@ -271,7 +271,7 @@ class Connection(hbase_base.Connection, base.Connection):
# https://bugs.launchpad.net/ceilometer/+bug/1301371
result = set()
for ignored, data in gen:
flatten_result, s, meters, md = hbase_utils.deserialize_entry(
flatten_result, meters, md = hbase_utils.deserialize_entry(
data)
for m in meters:
if limit and len(result) >= limit:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment