Public bug reported:

$ landscape-sysinfo --sysinfo-plugins=Foobar
Traceback (most recent call last):
  File "/usr/bin/landscape-sysinfo", line 22, in <module>
    run(sys.argv[1:], reactor)
  File "/usr/lib/python3/dist-packages/landscape/sysinfo/", line 
115, in run
    for plugin in config.get_plugins():
  File "/usr/lib/python3/dist-packages/landscape/sysinfo/", line 
71, in get_plugins
    for plugin_name in plugins]
  File "/usr/lib/python3/dist-packages/landscape/sysinfo/", line 
71, in <listcomp>
    for plugin_name in plugins]
  File "/usr/lib/python3/dist-packages/twisted/python/", line 173, in 
    module = namedModule('.'.join(classSplit[:-1]))
  File "/usr/lib/python3/dist-packages/twisted/python/", line 159, in 
    topLevel = __import__(name)
ModuleNotFoundError: No module named 'landscape.sysinfo.foobar'

The --exclude-sysinfo-plugins option works just fine with unknown plugins:
$ landscape-sysinfo --exclude-sysinfo-plugins=Foobar
  System load:    0.03              Processes:           81
  Usage of /home: 0.6% of 19.68GB   Users logged in:     1
  Memory usage:   6%                IP address for ens3:
  Swap usage:     0%

  Graph this data and manage this system at:

** Affects: landscape-client (Ubuntu)
     Importance: High
     Assignee: Andreas Hasenack (ahasenack)
         Status: In Progress

** Changed in: landscape-client (Ubuntu)
   Importance: Undecided => High

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  landscape-sysinfo crashes if asked to use an unknown plugin

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to