You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to create virtual resources dynamically results in an error, that the resource name does not conform to the naming rule:
puppet apply -e 'Resource["@File"] { "/tmp/test.txt": }'
Error: Evaluation Error: Illegal type reference. The given name '@file' does not conform to the naming rule (line: 1, column: 10) on node xyz
Expected Behavior
Should allow creating virtual resources like create_resources does.
Steps to Reproduce
puppet apply -e 'Resource["@file"] { "/tmp/test.txt": }'
Error: Evaluation Error: Illegal type reference. The given name '@file' does not conform to the naming rule (line: 1, column: 10) on node xyz
Environment
Tested with puppet agent 8.6.0
The text was updated successfully, but these errors were encountered:
@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
The text was updated successfully, but these errors were encountered: