Alex Savatieiev | c905571 | 2019-03-01 14:43:56 -0600 | [diff] [blame] | 1 | import checker |
| 2 | |
| 3 | from cfg_checker.helpers import args_utils |
| 4 | |
| 5 | |
| 6 | def do_report(args): |
| 7 | """Create package versions report |
| 8 | |
| 9 | :args: - parser arguments |
| 10 | :return: - no return value |
| 11 | """ |
| 12 | _filename = args_utils.get_file_arg(args) |
| 13 | |
| 14 | # init connection to salt and collect minion data |
| 15 | pChecker = checker.CloudPackageChecker() |
| 16 | # collect data on installed packages |
| 17 | pChecker.collect_installed_packages() |
| 18 | # diff installed and candidates |
Alex Savatieiev | 3db12a7 | 2019-03-22 16:32:31 -0500 | [diff] [blame^] | 19 | pChecker.collect_packages() |
Alex Savatieiev | c905571 | 2019-03-01 14:43:56 -0600 | [diff] [blame] | 20 | # report it |
| 21 | pChecker.create_html_report(_filename) |