Skip to content

Add extract_to parameter to the CLI

Álvaro López García requested to merge github/fork/Pigueiras/patch into master

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 added self.reset_flags() in tearDown().
  • I changed the nova extractor. I use the extract_to date instead of now and ignore the VMs from records that have been created after the end of the interval or removed 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.

Merge request reports

Loading