We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1afa657 commit bf6f010Copy full SHA for bf6f010
lib/puppet/type/database_user.rb
@@ -7,7 +7,7 @@
7
newparam(:name, :namevar=>true) do
8
desc "The name of the user. This uses the 'username@hostname' or username@hostname."
9
validate do |value|
10
- Puppet.warning("database has been deprecated in favor of mysql_user.")
+ Puppet.warning("database_user has been deprecated in favor of mysql_user.")
11
# https://dev.mysql.com/doc/refman/5.1/en/account-names.html
12
# Regex should problably be more like this: /^[`'"]?[^`'"]*[`'"]?@[`'"]?[\w%\.]+[`'"]?$/
13
raise(ArgumentError, "Invalid database user #{value}") unless value =~ /[\w-]*@[\w%\.:]+/
0 commit comments