Skip to content

ikiwiki: Initialize shortcuts during post-init setup

In CI tests, when running 'run --list-dependencies', init for ikiwiki fails with the following error. Fix that.

Exception while running init for <module 'plinth.modules.ikiwiki' from '/builds//freedombox/plinth/modules/ikiwiki/__init__.py'>: Action must exist in action directory.
Traceback (most recent call last):
  File "/builds//freedombox/plinth/app.py", line 536, in _initialize_module
    module.app = app_class()
  File "/builds//freedombox/plinth/modules/ikiwiki/__init__.py", line 61, in __init__
    self.refresh_sites()
  File "/builds//freedombox/plinth/modules/ikiwiki/__init__.py", line 102, in refresh_sites
    sites = actions.run('ikiwiki', ['get-sites']).split('\n')
  File "/builds//freedombox/plinth/actions.py", line 95, in run
    return _run(action, options, input, run_in_background, False)
  File "/builds//freedombox/plinth/actions.py", line 147, in _run
    raise ValueError('Action must exist in action directory.')
ValueError: Action must exist in action directory.

Tests:

  • Shortcuts for ikiwiki show up properly on the front page after FreedomBox daemon is restarted.

  • Salsa CI no longer show the above error during --list-dependencies.

Signed-off-by: Sunil Mohan Adapa sunil@medhas.org

Merge request reports

Loading