puppetlabs / puppet-lint

Check that your Puppet manifests conform to the style guide

Home Page:https://puppetlabs.github.io/puppet-lint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash on NoMethodError: undefined method

Chartreusito opened this issue · comments

puppet-lint version: 4.0.0
ruby version: 3.0.2-p107
platform: x86_64-linux-gnu
file path: modules//repos/manifests/lab_consol_de.pp
file contents:

#Lab Consol.de repos
class repos::lab_consol_de(
  $channel = 'stable',
){

    if($::facts[http_proxy]) {
      $options = "http-proxy=\"http://${::facts[http_proxy][host]}:${::facts[http_proxy][port]}/\""
    } else {
      $options = ''
    }
    apt::source { 'labs.consol.de':
      comment  => 'Consol.de repo',
      #location => "http://labs.consol.de/repo/${channel}/debian",
      location => "http://labs.consol.de/repo/stable/debian",
      release  => $::os[codename],
      repos    => 'main',
      pin      => '1000',
      key      => {
        id     => 'F2F97737B59ACCC92C23F8C7F8C1CA08A57B9ED7',
        source => 'https://labs.consol.de/repo/stable/RPM-GPG-KEY',
        #        options => $options
      },
      include  => {
        'src' => false,
        'deb' => true,
      },
    }


}