Issue #18052 has been updated by eric sorenson. Status changed from Unreviewed to Investigating Assignee set to Charlie Sharpsteen
Charlie -- is this still the case in HEAD? ---------------------------------------- Bug #18052: Error when attempting to run: puppet module generate... https://projects.puppetlabs.com/issues/18052#change-84060 Author: Marc Tardif Status: Investigating Priority: Normal Assignee: Charlie Sharpsteen 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: <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.
