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

Bug in services.cfg.erb (services with the hostgroup all missing from the resulting config) #322

Closed
heaven opened this issue Jan 11, 2015 · 5 comments

Comments

@heaven
Copy link

heaven commented Jan 11, 2015

Also the validation could be changed to:

valid = !!service['hostgroup_name'].split(",").
  find { |s| @hostgroups.include?(s) or @search_hostgroups.include?(s) }
@sbotman
Copy link
Contributor

sbotman commented Jan 11, 2015

With the new model these checks should not be needed any more. Checkout pull request #319 and feel free to share your thoughts on it.

@heaven
Copy link
Author

heaven commented Jan 11, 2015

Hi, for now I only upgraded to 5.3.4 (because of the refactoring in the gem I can't use the most recent version for now). One thing I noticed is that all our services with host group all stopped working. So I had to add:

<%
   hostgroups = @hostgroups | ['all']
%>

And to remove service['hostgroup_name'] == "all" check at all.

@sbotman
Copy link
Contributor

sbotman commented Apr 30, 2015

@heaven oke with you if we close this? Because cannot reproduce the problem with latest version. Cheers Sander

@heaven
Copy link
Author

heaven commented May 1, 2015

@sbotman sure, the problem only exists in versions <= 5.3.4.

@heaven heaven closed this as completed May 1, 2015
@lock
Copy link

lock bot commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants