def METHOD_NAME(self):
    self.add_file_tags({
        '/etc/dnf/modules.d/.*.module': 'dnf_modules'
    })
    self.add_copy_spec([
        "/etc/dnf/",
        "/etc/yum.conf",
        "/etc/yum/pluginconf.d/",
        "/etc/yum/vars/",
    ])
    self.add_copy_spec("/etc/yum.repos.d/",
                       tags=['yum_repos_d', 'dnf_repos_d', 'dnf_repo'])
    if self.get_option("all_logs"):
        self.add_copy_spec("/var/log/dnf.*")
    else:
        self.add_copy_spec("/var/log/dnf.log*")
        self.add_copy_spec("/var/log/dnf.librepo.log*")
        self.add_copy_spec("/var/log/dnf.rpm.log*")
    self.add_cmd_output("dnf module list",
                        tags='dnf_module_list')
    self.add_cmd_output([
        "dnf --version",
        "dnf list extras",
        "package-cleanup --dupes",
        "package-cleanup --problems"
    ])
    self.add_cmd_output("dnf list installed",
                        tags=["yum_list_installed", "dnf_list_installed"])
    self.add_cmd_output('dnf -C repolist',
                        tags=['yum_repolist', 'dnf_repolist'])
    self.add_cmd_output('dnf -C repolist --verbose')
    self.add_forbidden_path([
        "/etc/pki/entitlement/key.pem",
        "/etc/pki/entitlement/*-key.pem"
    ])
    self.add_copy_spec([
        "/etc/pki/product/*.pem",
        "/etc/pki/consumer/cert.pem",
        "/etc/pki/entitlement/*.pem"
    ])
    if not self.get_option("history-info"):
        self.add_cmd_output("dnf history", tags='dnf_history')
    else:
        history = self.collect_cmd_output("dnf history",
                                          tags='dnf_history')
        transactions = -1
        if history['output']:
            for line in history['output'].splitlines():
                try:
                    transactions = int(line.split('|')[0].strip())
                    break
                except ValueError:
                    pass
        for tr_id in range(1, min(transactions+1, 50)):
            self.add_cmd_output("dnf history info %d" % tr_id,
                                subdir="history-info",
                                tags='dnf_history_info')
    # Get list of dnf installed modules and their details.
    module_cmd = "dnf module list --installed"
    modules = self.collect_cmd_output(module_cmd)
    self.get_modules_info(modules['output'])