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

Fix detection of a PE-based PuppetDB #146

Merged
merged 2 commits into from
Oct 4, 2014

Conversation

seanmil
Copy link
Contributor

@seanmil seanmil commented Oct 3, 2014

There is a bug in the detection of whether or not the environment is a PE-based PuppetDB environment when checking on the is_pe fact.

These commits add an initial spec test to show both the regular and PE-style behaviors that are expected and then a second commit which corrects the behavior.

Thanks!

Add a new spec test providing some initial coverage of
puppetdb::server demontrating the failure to correctly
detect a PE environment.
defined('$::is_pe') will never evaluate to true, even if
the is_pe fact is defined. defined('$is_pe') will return the
correct results.
@kbarber
Copy link
Contributor

kbarber commented Oct 4, 2014

@seanmil sweet, thanks.

kbarber added a commit that referenced this pull request Oct 4, 2014
Fix detection of a PE-based PuppetDB
@kbarber kbarber merged commit 422d400 into puppetlabs:master Oct 4, 2014
@smortex smortex added the bugfix label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants