Skip to content

Allowing the package_source to be an Httpurl#582

Merged
ekohl merged 1 commit intotheforeman:masterfrom
MAXxATTAXx:HttpUrl_package_source
Mar 3, 2018
Merged

Allowing the package_source to be an Httpurl#582
ekohl merged 1 commit intotheforeman:masterfrom
MAXxATTAXx:HttpUrl_package_source

Conversation

@MAXxATTAXx
Copy link
Copy Markdown

Allow httpurl arguments for the pacakge reosurce.

In previous releases this value was not checked and when used with providers like chocolatey, it can support httpurl. The module should not restrict this parameter type so heavily.

@rodolfosalgado
Copy link
Copy Markdown

This is awesome, I had to do the same thing for me...

Copy link
Copy Markdown
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Makes sense to me. Could you add a simple test for this so we don't accidentally break this in the future?

@MAXxATTAXx
Copy link
Copy Markdown
Author

Not sure where that test shuld go. puppet_agent_install_spec.rb?

@ekohl
Copy link
Copy Markdown
Member

ekohl commented Mar 2, 2018

Since that doesn't actually check the parameter type I think it needs to go in spec/classes/puppet_init_spec.rb

Copy link
Copy Markdown
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

It looks correct. Going to let the tests complete before I merge it (or anyone else does).

@MAXxATTAXx MAXxATTAXx force-pushed the HttpUrl_package_source branch from 1e1d42e to 283fb05 Compare March 3, 2018 01:43
@ekohl ekohl merged commit 96a5141 into theforeman:master Mar 3, 2018
@ekohl
Copy link
Copy Markdown
Member

ekohl commented Mar 3, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants