Skip to content

Resource purging does not work with simple_get_filter #303

Closed
@seanmil

Description

@seanmil

Describe the Bug

For types with the simple_get_filter feature it is seemingly not possible to perform resource purging with either the resources type or the purge type from crayfishx/purge.

When attempting to purge types with simple_get_filter it seems that the existing-but-unmanaged resources are never found via the type instances() method, therefore preventing them from being purged.

Removing the simple_get_filter flag is sufficient to restore resource purging to a working state.

Expected Behavior

Types using simple_get_filter should support instantiation, even of unknown resources, via instances() OR a warning/error should be thrown. The user of a given Resource API-based resource should not have to be aware of the implementation details to figure out if resource purging will work.

Environment

  • Version Puppet 7.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions