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

(MODULES-8193) - Removal of inbuilt deepmerge and dirname functions #1145

Merged
merged 2 commits into from
Dec 13, 2018
Merged

(MODULES-8193) - Removal of inbuilt deepmerge and dirname functions #1145

merged 2 commits into from
Dec 13, 2018

Conversation

david22swan
Copy link
Member

Both functions have been removed from the code and their function calls within the manifest's updated as they already exist within puppet itself, in the case of deepmerge and within stdlib in the case of dirname.

Both functions have been removed from the code and their function calls within the manifest's updated as they already exist within puppet itself, in the case of deepmerge and within stdlib in the case of dirname.
if $configparentdir != '/' and $configparentdir != '/etc' and $configparentdir
!= $includedir and $configparentdir != mysql::dirname($includedir) {
!= $includedir and $includedir != undef and $includedir != '' and $configparentdir
!= dirname($includedir) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is hideously hard to read. can it be simplified or split up

@david22swan
Copy link
Member Author

Have separated/updated code in such as way as to improve readability while maintaining the original functionality of the code.

Removed a test file that was missed by my first sweep
Updated if statement to account for differences between the now removed built in dirname function and the stdlib version
@david22swan
Copy link
Member Author

@tphoney Are you fine with the code as it is now?

@david22swan
Copy link
Member Author

screen shot 2018-12-13 at 12 04 26 pm

Changes run green on adhoc

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.

2 participants