Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to apply a filter #375

Closed
zanloy opened this issue Jun 23, 2015 · 2 comments
Closed

Error trying to apply a filter #375

zanloy opened this issue Jun 23, 2015 · 2 comments

Comments

@zanloy
Copy link
Contributor

zanloy commented Jun 23, 2015

I am trying to implement a filter and I keep getting an error trying to apply the catalog.

Error message:

Error: /Stage[main]/Profiles::Sensu/Sensu::Handler[slack]/Sensu_handler[slack]/filters: change from to maint_filter failed: undefined method `sort' for nil:NilClass

Filter declaration:

sensu::filter { 'maint_filter':
  attributes => { 'maint' => 'false' },
}

Handler declaration:

sensu::handler { 'slack':
  command => 'slack.rb',
  source  => 'puppet:///modules/profiles/sensu/handlers/slack.rb',
  config  => {
    'webhook_url' => '***FILTERED**',
    'channel'     => '#sensu',
  },
  mutator => 'maint_mode',
  filters => ['maint_filter'],
}

Any help would be greatly appreciated.

@rk295
Copy link
Contributor

rk295 commented Jun 23, 2015

Snap! Dupe of #374 I think :)

@zanloy
Copy link
Contributor Author

zanloy commented Jun 23, 2015

Oops. I did not see that issue already open.

@zanloy zanloy closed this as completed Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants