Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement instances method allowing puppet resource to return current resources #295

Open
n3mawashi opened this issue Jun 17, 2020 · 1 comment

Comments

@n3mawashi
Copy link

I guess this sits somewhere between bug and feature enhancement. We use this command to check the syntax but also to understand what information is being returned.

  • Puppet: 5.5
  • Ruby: 2.5.7
  • Distribution: oracle linux
  • Module version: 4.3.0

How to reproduce (e.g Puppet code you use)

puppet resource firewalld_service

What are you seeing

Error: Could not run: To support listing resources of this type the 'firewall_cmd' provider needs to implement an 'instances' class method returning the current set of resources. We recommend porting your module to the simpler Resource API instead: https://puppet.com/search/docs?keys=resource+api

What behaviour did you expect instead

to return the list of services currently configured

@nasa-dan
Copy link

BUMP
This would be really nice to have.

@binford2k binford2k changed the title Allow resource to collect existing configuration Implement instances method allowing puppet resource to return current resources Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants