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
The same problem can be triggered by specifying map contents on an autofs::mount, too.
What are you seeing
Catalog compilation fails.
What behaviour did you expect instead
Catalog compilation should succeed, treating the map contents string the same as an array with that string as its only element.
Output log
Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template autofs/auto.map.erb:
Filepath: /home/jbolling/.puppetlabs/etc/code/modules/autofs/templates/auto.map.erb
Line: 17
Detail: undefined method `each' for "test -ro example.com:/export/test":String
(file: /home/jbolling/.puppetlabs/etc/code/modules/autofs/manifests/map.pp, line: 66, column: 18) (file: /home/jbolling/tmp/str_err.pp, line: 3) on node random.stjude.org
Any additional information you'd like to impart
The module documentation and the data type declarations in autofs::map and autofs::mount both permit the map contents to be expressed as a bare string, but the template for map contents assumes it will be an array.
The text was updated successfully, but these errors were encountered:
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
The same problem can be triggered by specifying map contents on an
autofs::mount
, too.What are you seeing
Catalog compilation fails.
What behaviour did you expect instead
Catalog compilation should succeed, treating the map contents string the same as an array with that string as its only element.
Output log
Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template autofs/auto.map.erb:
Filepath: /home/jbolling/.puppetlabs/etc/code/modules/autofs/templates/auto.map.erb
Line: 17
Detail: undefined method `each' for "test -ro example.com:/export/test":String
(file: /home/jbolling/.puppetlabs/etc/code/modules/autofs/manifests/map.pp, line: 66, column: 18) (file: /home/jbolling/tmp/str_err.pp, line: 3) on node random.stjude.org
Any additional information you'd like to impart
The module documentation and the data type declarations in
autofs::map
andautofs::mount
both permit the map contents to be expressed as a bare string, but the template for map contents assumes it will be an array.The text was updated successfully, but these errors were encountered: