d054c7c740
For now, instance attribute 'state' is stored to metadata of meter which was generated from notifications. But when meter was generated from instance polling, 'state' is not stored to metadata of meter even this attribute could be retrieved from polling action. Because the meter generated from notifications or polling update the resource information in database in cycles, the resource show API may return the instance metadata with different style(sometimes the returned metadata contains 'state', but at other times, the 'state' is disappeared in it), which may confuse us in some situations. In this patch, 'state' has been added to the meter metadata if the meter was generated from polling source. Closes-Bug: #1491224 Change-Id: Ie869672901b1d13f9444d0ca0e7d849f5e4ffc4b |
||
---|---|---|
.. | ||
functional | ||
integration | ||
unit | ||
__init__.py | ||
base.py | ||
constants.py | ||
db.py | ||
mocks.py | ||
pipeline_base.py |