Skip to content

Merged the instance and volume usage functions in utils.

Nichita Herciu requested to merge nherciu/dashboard:refact into master

Due to the fact that most of the code in the get_instance_usage and get_volume_usage functions was duplicated, they have been merged into one single function named get_resource_usage. Also removed some cinder api calls that were slowing the code down and affecting the data displayed (in the costs page only the currently existing volumes would be present without skipping these calls).

Merge request reports