blob: 0e2d9563e7e8bcd2e40c79bf6deff8cc6b67fc22 [file] [log] [blame]
Alex Savatieievc9055712019-03-01 14:43:56 -06001import checker
2
3from cfg_checker.helpers import args_utils
4
5
6def 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 Savatieiev3db12a72019-03-22 16:32:31 -050019 pChecker.collect_packages()
Alex Savatieievc9055712019-03-01 14:43:56 -060020 # report it
21 pChecker.create_html_report(_filename)