I've verified the fix in a noble LXD container using landscape-
client=26.02.2-0ubuntu1~24.04.1.

$ landscape-sysinfo --sysinfo-plugins=Foobar
usage: landscape-sysinfo [-h] [--version] [-c FILE] ...
landscape-sysinfo: error: argument --sysinfo-plugins: ['Foobar']

exits 2 with a clean error and no traceback.

Normal output still works and valid plugin lists are accepted:

$ landscape-sysinfo --sysinfo-plugins=Load,Disk,Memory,Processes
  System load: 1.82              Memory usage: 0%   Processes: 26
  Usage of /:  4.7% of 13.24GB   Swap usage:   0%

** Tags removed: verification-needed-noble
** Tags added: verification-done-noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1754002

Title:
  [SRU] landscape-sysinfo crashes if asked to use an unknown plugin

To manage notifications about this bug go to:
https://bugs.launchpad.net/landscape-client/+bug/1754002/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to