monasca-api/monasca_api/common/repositories/cassandra
Joseph Davis d6852ee1b7 Detect missing metric_id before passing through bytearray()
It is possible for a row in Cassandra to have a missing metric_id
(shows as 'null' in cqlsh).  This causes an ugly NoneType error
to be passed up to the user on the command line for
'monaca metric-list'.

Fix is to detect the missing value, log an error, and return the
row with None for the metric_id.

Change-Id: Ie617932c6b12a6cfe441510e120bb77a3470b9cf
Story: 2005305
Task: 30194
2019-03-26 14:17:18 -07:00
..
__init__.py Adding stubs for Cassandra support 2015-08-26 14:30:48 -06:00
metrics_repository.py Detect missing metric_id before passing through bytearray() 2019-03-26 14:17:18 -07:00