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 #4343 - adds compatibility with latest puppet version #66

Merged
merged 1 commit into from Feb 14, 2014

Conversation

ares
Copy link
Member

@ares ares commented Feb 14, 2014

Tested with major releases from 2.7 to 3.4

Tested with major releases from 2.7 to 3.4
values[:production][:confdir] ||= '/' # just some stubbing
Puppet.settings[:confdir] ||= '/' # just some stubbing
if Puppet::Node::Environment.respond_to?(:create)
env = Puppet::Node::Environment.create(:production, [], '')
Copy link
Contributor

Choose a reason for hiding this comment

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

Why use .create here instead of .new?

Copy link
Member Author

Choose a reason for hiding this comment

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

create seems to be preffered method in environment factory but is present only in master (3.5+), I wanted to use the way they use

@domcleal
Copy link
Contributor

👍 thanks for the quick fix :)

ares added a commit that referenced this pull request Feb 14, 2014
Fix #4343 - adds compatibility with latest puppet version
@ares ares merged commit f0d14f9 into theforeman:master Feb 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants