blob: 0e2d9563e7e8bcd2e40c79bf6deff8cc6b67fc22 [file] [log] [blame]
import checker
from cfg_checker.helpers import args_utils
def do_report(args):
"""Create package versions report
:args: - parser arguments
:return: - no return value
"""
_filename = args_utils.get_file_arg(args)
# init connection to salt and collect minion data
pChecker = checker.CloudPackageChecker()
# collect data on installed packages
pChecker.collect_installed_packages()
# diff installed and candidates
pChecker.collect_packages()
# report it
pChecker.create_html_report(_filename)