Merge "Fix v1 hybrid storage python2 python3 string type comparison in memory"

This commit is contained in:
Zuul 2019-07-19 14:56:03 +00:00 committed by Gerrit Code Review
commit 5264a139b5

View File

@ -400,7 +400,7 @@ class GnocchiStorage(BaseHybridBackend):
price_dict = {'price': float(price)} price_dict = {'price': float(price)}
# Getting vol # Getting vol
if isinstance(res_type_info['qty_metric'], six.text_type): if isinstance(res_type_info['qty_metric'], six.string_types):
try: try:
qty = self._conn.metric.get_measures( qty = self._conn.metric.get_measures(
resource['metrics'][res_type_info['qty_metric']], resource['metrics'][res_type_info['qty_metric']],