Skip to content

Commit

Permalink
vnc_cassandra: encode keys before calling pycassa
Browse files Browse the repository at this point in the history
Closes-Bug: #1808132
Change-Id: I53c6cc08b6a00be54d7e0fdfbbe136e97abc89a4
(cherry picked from commit d7cad14)
  • Loading branch information
eonpatapon authored and Édouard Thuleau committed Jan 8, 2019
1 parent 433651f commit 66a7b70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config/common/vnc_cassandra.py
Expand Up @@ -210,6 +210,7 @@ def get(self, cf_name, key, columns=None, start='', finish=''):

def multiget(self, cf_name, keys, columns=None, start='', finish='',
timestamp=False, num_columns=None):
keys = [k.encode('utf-8') for k in keys]
_thrift_limit_size = 10000
results = {}
cf = self.get_cf(cf_name)
Expand Down

0 comments on commit 66a7b70

Please sign in to comment.