Issue #12557 has been updated by Chris Price.

File 12557.pp added
Status changed from Needs More Information to Accepted
Assignee deleted (Chris Price)
Affected Puppet version changed from 2.7.9 to 2.7.10

That did it... must be some minor difference in your syntax vs what I was using 
before, but I am able to repro this now:

<pre>
$ puppet apply ./scratch/12557.pp  
Could not parse for environment production: Syntax error at '}'; expected '}' 
at 
/path/scratch/12557.pp:2 on node machine.domain
</pre>

Manifest file attached.

I'm not sure how soon we'll be able to get to this, but this error handling 
should definitely be improved... thanks for the report!
----------------------------------------
Bug #12557: Inaccurate error message when calling a defined function without 
colon after $name
https://projects.puppetlabs.com/issues/12557#change-54841

Author: zach armstrong
Status: Accepted
Priority: Low
Assignee: 
Category: error reporting
Target version: 
Affected Puppet version: 2.7.10
Keywords: 
Branch: 


Calling a function, like 
<pre>deploy::php_dev { "02" }  </pre>

throws this error: `err: Could not retrieve catalog from remote server: Error 
400 on SERVER: Could not parse for environment production: Syntax error at '}'; 
expected '}' at /etc/puppet/manifests/site.pp:72`

It should say `expected ':'`


-- 
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.

Reply via email to