Open vicinus opened 6 months ago
@vicinus I am not clear what you mean by the create_resources
in the Expected Behavior section; do you think you could write some more detail in about that?
I just meant, that with create_resources it is possible to create virtual resources dynamically, without an error:
puppet apply -e 'create_resources("@file", { "/tmp/test.txt" => {}})'
Notice: Compiled catalog for xyz in environment production in 0.02 seconds
Notice: Applied catalog in 0.02 seconds
If I understand the documentation of create_resources correctly, then the usage of create_resources is discouraged and the Resource version is preferred.
Describe the Bug
Trying to create virtual resources dynamically results in an error, that the resource name does not conform to the naming rule:
Expected Behavior
Should allow creating virtual resources like create_resources does.
Steps to Reproduce
Environment
Tested with puppet agent 8.6.0