Skip to content

lua-load vs lua-prepend-path #633

@bzed

Description

@bzed

Describe the Bug

lua-prepend-path in global settings needs to be listed before lua-load, otherwise it won't be used while loading the lua script.
The puppet module sorts the options alphabetically, breaking this badly.

Expected Behavior

Don't sort alphabetically.

Steps to Reproduce

    'lua-prepend-path'          => [
      '/usr/share/haproxy/?/init.lua',
      '/usr/share/haproxy/?.lua',
      '/etc/haproxy/lua/?/init.lua',
      '/etc/haproxy/lua/?.lua',
    ],
    'lua-load'                  => '/your/script/that/needs/a/lib/from/those/paths',

put that in global_options and see haproxy fail to load the lua script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions