Issue #18052 has been reported by Marc Tardif.
----------------------------------------
Bug #18052: Error when attempting to run: puppet module generate...
https://projects.puppetlabs.com/issues/18052
Author: Marc Tardif
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
When running puppet from git as of today, revision
86f7e5e4106e00d2b87f7f385a4a65815dae61fd, this is what happens when attempting
to generate a module:
$ puppet module generate --debug foo-bar
Notice: Generating module at /tmp/foo-bar
Error: compile error
(erb):36: syntax error, unexpected ')'
...ut.concat(( Time.now.year -).to_s); _erbout.concat " Your ...
^
Error: Try 'puppet help module generate' for usage
The first problem is that the error does not provide the filename where there
is apparently a syntax error. After looking around, I found that the culprit is
lib/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb
The second problem is that the embedded part fo the template for the timestamp
contains a trailing dash which is unnecessary:
# Copyright <%= Time.now.year -%> Your name here, unless otherwise noted.
Simply removing the dash solves the problem and a module can be generated
successfully.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.