Issue #18052 has been updated by Charlie Sharpsteen.

Category set to module tool
Status changed from Investigating to Closed
Branch set to https://github.com/puppetlabs/puppet/commit/44edc94

This was fixed in 44edc94.
----------------------------------------
Bug #18052: Error when attempting to run: puppet module generate...
https://projects.puppetlabs.com/issues/18052#change-84135

Author: Marc Tardif
Status: Closed
Priority: Normal
Assignee: Charlie Sharpsteen
Category: module tool
Target version: 
Affected Puppet version: 
Keywords: 
Branch: https://github.com/puppetlabs/puppet/commit/44edc94


When running puppet from git as of today, revision 
86f7e5e4106e00d2b87f7f385a4a65815dae61fd, this is what happens when attempting 
to generate a module:

<pre>
$ 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
</pre>

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:

<pre>
# Copyright <%= Time.now.year -%> Your name here, unless otherwise noted.
</pre>

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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to