I've verified the fix in a jammy LXD container using landscape-
client=26.02.2-0ubuntu1~22.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.75              Memory usage: 0%   Processes: 30
  Usage of /:  6.0% of 13.36GB   Swap usage:   0%

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

-- 
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