title: How to fix 'Could not parse for environment production' error?
body: <p>Here is my little puppet snippet: when i execute this snippet i got the following error:</p>
  
  <blockquote>
    <p>err: Could not parse for environment production: Could not match   at /home/test.pp:8</p>
  </blockquote>
  
  <pre><code>$vendor = generate("/usr/bin/lsscsi")
  
  if defined($vendor) {
      if $vendor =~ /LSI/{
          $d_multipath = [{
              vendor =&gt; 'LSI',
              product =&gt; 'INF-01-00',
              path_checker =&gt; 'rdac',
              path_selector =&gt; 'round-robin 0',
         }]
      }
  }
  else {
      notify {'faield-lsscsi':
          message  =&gt; "ERROR: failed to execute lsscsi to get the scsi vendor type",
          loglevel =&gt; critical,
      }
  }
  </code></pre>
  
  <p>Could some one please help in pointing out?</p>