Puppet: System Administration Automated

Support

Ticket #1109 (new defect)

Opened 6 months ago

Last modified 6 months ago

if/else blocks with only a comment in the if section fail

Reported by: btm Assigned to: community
Priority: normal Milestone:
Component: language Version: 0.24.1
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Easy

Description

  $is_vmware = tagged('vmware-guest')
  if $is_vmware {
    # debug(" vmware module handles time sync for guests")
  } else {
    include ntp::client
  }

produces:

Could not parse for environment development: Syntax error at '}'; expected '}' at puppet/manifests/site/base.pp:32

where:

  $is_vmware = tagged('vmware-guest')
  if $is_vmware {
    debug(" vmware module handles time sync for guests")
  } else {
    include ntp::client
  }

works

Change History

02/29/08 08:26:16 changed by jamtur01

  • complexity changed from Unknown to Easy.
  • stage changed from Unreviewed to Accepted.