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

Fixes #8585: Remove unused configuration and unneeded functions. #50

Merged
merged 1 commit into from
Mar 5, 2015

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Dec 4, 2014

No description provided.

@ehelms ehelms force-pushed the fixes-8585 branch 2 times, most recently from 22b6635 to ce5dd15 Compare December 10, 2014 14:43
@ehelms ehelms force-pushed the fixes-8585 branch 2 times, most recently from 49a936e to 2304505 Compare February 24, 2015 14:16
@ehelms ehelms mentioned this pull request Mar 2, 2015
@stbenjam
Copy link
Member

stbenjam commented Mar 2, 2015

ACK

@ekohl
Copy link
Member

ekohl commented Mar 2, 2015

Same as #64, I think you can drop foreman_oauth_key from params.pp while you're at it (unless some other module secretly uses it, but I doubt that).


candlepin:
url: <%= scope.lookupvar("katello::params::candlepin_url") %>
url: <%= @candlepin_url %>
Copy link
Member

Choose a reason for hiding this comment

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

I'm slightly surprised this still works with scoping. I'd recommend adding a test to katello_config_spec.rb that verifies one of the config vars (but possibly all).

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd be ok with changing all of these to scope[] syntax if that would alleviate the potential for strangeness in the future.

Copy link
Member

Choose a reason for hiding this comment

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

https://docs.puppetlabs.com/guides/templating.html#referencing-variables mentions that they should be in scope and since the template is rendered from katello::config, I'd expect everything from the katello scope to be unavailable.

@ehelms
Copy link
Member Author

ehelms commented Mar 3, 2015

@ekohl Added tests, but didn't change the template. I wasn't sure if the tests would suffice or I needed to update to scope[] syntax.

@ekohl
Copy link
Member

ekohl commented Mar 4, 2015

@ehelms since there's test coverage now, I assume it's ok. Once the aim is puppet 4 support, it can just be added to the test matrix and you'll find out easily enough. 👍

@stbenjam
Copy link
Member

stbenjam commented Mar 5, 2015

ACK

ehelms added a commit that referenced this pull request Mar 5, 2015
Fixes #8585: Remove unused configuration and unneeded functions.
@ehelms ehelms merged commit ecd73be into theforeman:master Mar 5, 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

Successfully merging this pull request may close these issues.

3 participants