[pmg-devel] [PATCH pmg-api 2/3] pmg-system-report: add apt sources

Stoiko Ivanov s.ivanov at proxmox.com
Fri Apr 24 19:01:01 CEST 2020


Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 src/PMG/Report.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PMG/Report.pm b/src/PMG/Report.pm
index 0fe742b..82ae5f7 100644
--- a/src/PMG/Report.pm
+++ b/src/PMG/Report.pm
@@ -21,6 +21,8 @@ my $report_def = {
 	    'top -b -n 1  | head -n 15',
 	    'pmgsubscription get',
 	    sub { check_dns_resolution() },
+	    'cat /etc/apt/sources.list',
+	    sub { dir2text('/etc/apt/sources.list.d/', '.*\.list' ) },
 	],
     },
     storage => [
-- 
2.20.1




More information about the pmg-devel mailing list