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

(MODULES-3994) Fix incorrect condition so services are created #182

Closed

Conversation

seanhoughton
Copy link

This fixes a typo that prevents the service resources from being created

@seanhoughton
Copy link
Author

Hello, I'm reasonably sure that the fix is valid - but I've exhausted my time budget for working out the unit tests today. If I can get some time next week I'll give it another try, but this seems like a fairly serious bug because it results in services not getting installed so maybe someone else can have a look.

@MosesMendoza
Copy link

@seanhoughton thank you for filing this! I created a ticket, https://tickets.puppetlabs.com/browse/MODULES-3994, to track resolution of this. Agreed this bug needs fixed

@seanhoughton
Copy link
Author

seanhoughton commented Oct 24, 2016

I'm not sure why the 4.0.0 tests are failing but I'm suspicious of the version comparisons. All the tests pass for me locally running inside a container...

docker run --rm -ti -v .:/agent ruby:2.1.10 bash -c "cd /agent && bundle install && rake test"

@@ -109,7 +109,7 @@ def global_facts(facts, os)
end
end

[{}, {:service_names => []}].each do |params|
[{}, {}].each do |params|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why run this twice now? This was also meant to test with services managed and unmanaged.

Copy link
Author

@seanhoughton seanhoughton Oct 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right and I've just restored the params

@MikaelSmith
Copy link
Contributor

Tests are failing. Is that something you're looking into?

@MikaelSmith MikaelSmith changed the title Fix incorrect condition so services are created (MODULES-3994) Fix incorrect condition so services are created Dec 20, 2016
@puppetcla
Copy link

Waiting for CLA signature by @seanhoughton

@seanhoughton - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppet.com/

Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppet.com/community/trivial_patch_exemption.html

@puppetcla
Copy link

CLA signed by all contributors.

@MikaelSmith
Copy link
Contributor

Fixed up in #209.

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

Successfully merging this pull request may close these issues.

5 participants