Skip to content

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

Merged
tphoney merged 2 commits intopuppetlabs:masterfrom
david22swan:MODULES-8193
Dec 13, 2018
Merged

(MODULES-8193) - Removal of inbuilt deepmerge and dirname functions#1145
tphoney merged 2 commits intopuppetlabs:masterfrom
david22swan:MODULES-8193

Conversation

@david22swan
Copy link
Copy Markdown
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.
Comment thread manifests/server/config.pp Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

@david22swan
Copy link
Copy Markdown
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