Merge "Fix v1 hybrid storage python2 python3 string type comparison in memory"
This commit is contained in:
commit
5264a139b5
@ -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']],
|
||||||
|
Loading…
Reference in New Issue
Block a user