Skip to content

Commit b47b30c

Browse files
author
Michael Power
committed
Correct jceks symbol comparison
The provider is comparing the storetype to a string in one instance instead of a symbol, resulting in a failure anytime is needs to run the command that is built from that comparison.
1 parent d470a3a commit b47b30c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/java_ks/keytool.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def current
219219
'-keystore', @resource[:target],
220220
'-alias', @resource[:name]
221221
]
222-
cmd += ['-storetype', storetype] if storetype == 'jceks'
222+
cmd += ['-storetype', storetype] if storetype == :jceks
223223
tmpfile = password_file
224224
output = run_command(cmd, false, tmpfile)
225225
tmpfile.close!

0 commit comments

Comments
 (0)