Add extract_to parameter to the CLI
Created by: Pigueiras
In order to limit the result for an interval I put this new option as a parameter in the CLI. Some comments about the pull request:
- I added some tests for this new option (only for
manager.py
). I think there was a bug in the tests, because the flags weren't being reset between tests. That's why I addedself.reset_flags()
intearDown()
. - I changed the
nova
extractor. I use theextract_to
date instead ofnow
and ignore the VMs fromrecords
that have been created after the end of the interval orremoved
after the interval (because the change didn't happen in the defined interval). - The change in the
ceilometer
extractor was easy, just add the parameter to the query already in place.