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/deployment.py", line 115, in run for plugin in config.get_plugins(): File "/usr/lib/python3/dist-packages/landscape/sysinfo/deployment.py", line 71, in get_plugins for plugin_name in plugins] File "/usr/lib/python3/dist-packages/landscape/sysinfo/deployment.py", line 71, in <listcomp> for plugin_name in plugins] File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 173, in namedObject module = namedModule('.'.join(classSplit[:-1])) File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 159, in namedModule 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: 192.168.122.47 Swap usage: 0% Graph this data and manage this system at: https://landscape.canonical.com/ ** 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. https://bugs.launchpad.net/bugs/1754002 Title: landscape-sysinfo crashes if asked to use an unknown plugin To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1754002/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs