-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Replace the IPAddress gem with the built-in IPAddr class #290
Conversation
In hindsight, maybe it's better to leave the ipaddress parameters in the network class to not break compatibility. |
@bastelfreak there should be no more breaking changes now. The ipaddress gem is removed by default, in a future (major) release the code managing the gem can eventually be dropped. Remaining code warnings are fixed as well. |
Thanks for the work! |
During bootstrap, puppet throws a warning message that 'ipaddress gem was not found'. The puppet-network module uses the IPAddress gem to perform some validations. This gem can be replaced by the built-in class IPAddr and that way does not require the custom gem installation. This commit is sourced from a PR from the official repository of the puppet-network module: voxpupuli/puppet-network#290 Test Plan: PASS: Build & Install PASS: AIO-SX & AIO-DX Successful Bootstrap PASS: AIO-SX & AIO-DX Successful Unlock PASS: Check that 'ipaddress gem not found' warning is no longer present on puppet.log Story: 2010757 Task: 48425 Change-Id: I1158628165ea62dc642a6a392a036f1d68b4a2cf Signed-off-by: Luis Marquitti <luis.eduardoangelinimarquitti@windriver.com>
Pull Request (PR) description
The module relies on the IPAddress gem to perform certain validations.
It can be replaced by the IPAddr class, which does not require custom gem installation as it's part of the standard ruby distribution.
This pull request removes traces to the IPAddress gem in favour of the IPAddr class.
This Pull Request (PR) fixes the following issues
This should also fix #267