Skip to content

Solving conflicting resources in mkdir_p #202

Open
@FOTempel

Description

@FOTempel

The mkdir_p function can be quite useful but it doesn't take much to make it unusable in the catalog due to double resource definitions. I basically recreated mkdir_p as a defined resource before finding extlib and solved this issue by adding a filter to the resulting array. Add:

.filter|$_dir| {!defined(File[$_dir])} # filter out File resources already defined in the catalog

to

}.flatten.unique.sort

I've tested it and it works, it filters out already elsewhere defined resources (in my case some root directories which are created as mount points).

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