Skip to content

undefined method `downcase' for nil:NilClass #322

@mcodenie

Description

@mcodenie

It seems the latest commits have issues in regards to downcase method in RHEL 8.x.

==> default: Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template rsyslog/client/remote.conf.erb:
==> default:   Filepath: /tmp/vagrant-puppet/environments/local/local-modules/rsyslog/templates/client/remote.conf.erb
==> default:   Line: 8
==> default:   Detail: undefined method `downcase' for nil:NilClass
==> default:  (file: /tmp/vagrant-puppet/environments/local/local-modules/rsyslog/manifests/client.pp, line: 156, column: 18) on node rabbitmq
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Based on the test, without issues is the commit 1bab870db27221d48e2e958c81c9cd6435c57ffd or earlier.

  class { 'rsyslog::client':
    #require        => Exec['rhel-8-for-x86_64-appstream-rpms'],
    remote_servers => [
      {
        host => 'logs.example.org',
      },
      {
        port => '55514',
      },
      {
        host     => 'logs.somewhere.com',
        port     => '555',
        pattern  => '*.log',
        protocol => 'tcp',
        format   => 'RFC3164fmt',
      },
    ],
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions