We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69ea05a + 03f754a commit 2bb3751Copy full SHA for 2bb3751
lib/puppet/type/mysql_user.rb
@@ -46,6 +46,20 @@
46
newproperty(:password_hash) do
47
desc 'The password hash of the user. Use mysql_password() for creating such a hash.'
48
newvalue(%r{\w*})
49
+
50
+ def change_to_s(currentvalue, _newvalue)
51
+ (currentvalue == :absent) ? 'created password' : 'changed password'
52
+ end
53
54
+ # rubocop:disable Style/PredicateName
55
+ def is_to_s(_currentvalue)
56
+ '[old password hash redacted]'
57
58
+ # rubocop:enable Style/PredicateName
59
60
+ def should_to_s(_newvalue)
61
+ '[new password hash redacted]'
62
63
end
64
65
newproperty(:plugin) do
0 commit comments