forked from puppetlabs/puppetlabs-mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove legacy (old API)
mysql_password
function
There's been a properly namespaced modern `mysql::password` function for some time. See puppetlabs#1044 When the modern API non-namespaced shim was removed in a68004c the `puppet/parser/functions` version still existed so users who hadn't migrated to `mysql::password` would have reverted to this legacy API version. This commit finally removes the legacy version, but puts back the shim for now (to not create a breaking change just yet). Both namespaced and non-namespaced shim are tested.
- Loading branch information
1 parent
0a8f005
commit 5a70627
Showing
6 changed files
with
34 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# @summary DEPRECATED. Use the namespaced function [`mysql::password`](#mysqlpassword) instead. | ||
Puppet::Functions.create_function(:mysql_password) do | ||
# @param password | ||
# Plain text password. | ||
# | ||
# @return | ||
# The mysql password hash from the 4.x function mysql::password. | ||
dispatch :mysql_password do | ||
required_param 'String', :password | ||
return_type 'String' | ||
end | ||
|
||
def mysql_password(password) | ||
call_function('deprecation', 'mysql_password', "This method has been deprecated, please use the namespaced version 'mysql::password' instead.") | ||
call_function('mysql::password', password) | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.