]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/Report.pm
report: fix regex of config filenames
[pve-manager.git] / PVE / Report.pm
index 17f9eb7eac32e3a27d9356aae30ea6b1522e5293..4588b2daafd71e92a2c3b362b026171c13c4018e 100644 (file)
@@ -36,8 +36,8 @@ my $init_report_cmds = sub {
                'cat /etc/hosts',
                'pvesubscription get',
                'cat /etc/apt/sources.list',
-               sub { dir2text('/etc/apt/sources.list.d/', '.*list') },
-               sub { dir2text('/etc/apt/sources.list.d/', '.*sources') },
+               sub { dir2text('/etc/apt/sources.list.d/', '.+\.list') },
+               sub { dir2text('/etc/apt/sources.list.d/', '.+\.sources') },
                'lscpu',
                'pvesh get /cluster/resources --type node --output-format=yaml',
            ],
@@ -65,9 +65,9 @@ my $init_report_cmds = sub {
            order => 40,
            cmds => [
                'qm list',
-               sub { dir2text('/etc/pve/qemu-server/', '\d.*conf') },
+               sub { dir2text('/etc/pve/qemu-server/', '\d+\.conf') },
                'pct list',
-               sub { dir2text('/etc/pve/lxc/', '\d.*conf') },
+               sub { dir2text('/etc/pve/lxc/', '\d+\.conf') },
            ],
        },
        network => {
@@ -84,7 +84,7 @@ my $init_report_cmds = sub {
        firewall => {
            order => 50,
            cmds => [
-               sub { dir2text('/etc/pve/firewall/', '.*fw') },
+               sub { dir2text('/etc/pve/firewall/', '.+\.fw') },
                'cat /etc/pve/local/host.fw',
                'iptables-save -c | column -t -l4 -o" "',
            ],