Skip to content

Commit 7f70b36

Browse files
GRIF-312: Fixing missing checking condition for Snowflake key pair authentication
1 parent 51a2297 commit 7f70b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gooddata/cloud_resources/snowflake/snowflake_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def build_private_key(private_key_string, pass_phrase)
130130
builder = JceOpenSSLPKCS8DecryptorProviderBuilder.new
131131
decryptor = builder.build(pass_phrase.to_java.to_char_array)
132132
private_key_info = pem_object.decryptPrivateKeyInfo(decryptor)
133-
else pem_object.is_a?(PrivateKeyInfo)
133+
elsif pem_object.is_a?(PrivateKeyInfo)
134134
private_key_info = pem_object
135135
end
136136

0 commit comments

Comments
 (0)