Issue #1109 has been updated by masterzen.

Affected version set to 0.24.4

btm wrote:
> [...]
> produces:
> [...]
> where:
> [...]
> works

Although this is won't be as needed as before with 0.24.6 (because of the if 
expression thing), I'm offering here a patch available here:
http://github.com/masterzen/puppet/tree/tickets%2F0.24.x%2F1109
----------------------------------------
Bug #1109: if/else blocks with only a comment in the if section fail
http://projects.reductivelabs.com/issues/show/1109

Author: btm
Status: Accepted
Priority: Normal
Assigned to: community
Category: language
Target version: 
Complexity: Easy
Patch: None
Affected version: 0.24.4
Keywords: 


<pre>
  $is_vmware = tagged('vmware-guest')
  if $is_vmware {
    # debug(" vmware module handles time sync for guests")
  } else {
    include ntp::client
  }
</pre>
produces:
<pre>
Could not parse for environment development: Syntax error at '}'; expected '}' 
at puppet/manifests/site/base.pp:32
</pre>
where:
<pre>
  $is_vmware = tagged('vmware-guest')
  if $is_vmware {
    debug(" vmware module handles time sync for guests")
  } else {
    include ntp::client
  }
</pre>
works



----------------------------------------
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://reductivelabs.com/redmine/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