+
Skip to content

Implement support for lua pattern match with forbid{} and hide{}. #797

@lkearney001

Description

@lkearney001

It would be useful to be able to use pattern matching for both the forbid{} and hide{} functions in modulerc.lua files on specific hosts.

For example for long lists the following format isn't really sustainable for large enumerations of hosts and applications.

forbid {name = "gpu-app01", message = "Modules requiring GPU hardware cannot be loaded on this node."}
forbid {name = "Gpu-app02", message = "Modules requiring GPU hardware cannot be loaded on this node."}
...

The following form would be much more useful.

forbid {name = "^[Gg]pu-app.*", message = "Modules requiring GPU hardware cannot be loaded on this node."}

Please consider adding this functionality and thank you.

-- lawrence

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载