Skip to content

Commit 526d8bf

Browse files
committed
update names of vars to match the followed pattern
1 parent c23bfe1 commit 526d8bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scala/src/main/scala/Osconfig.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,20 +216,20 @@ class CloudObjectStorage(sc: SparkContext, credentials: HashMap[String, String],
216216
}
217217

218218
private def _get_required_key_array(cosType : String, authMethod : String) : Array[String] = {
219-
val required_key_softlayer_cos = Array("endPoint", "accessKey", "secretKey")
220-
val required_key_list_iam_api_key = Array("endPoint", "apiKey", "serviceId")
221-
val required_key_list_iam_token = Array("endPoint", "iamToken", "serviceId")
219+
val requiredKeySoftlayerCos = Array("endPoint", "accessKey", "secretKey")
220+
val requiredKeyListIamApiKey = Array("endPoint", "apiKey", "serviceId")
221+
val requiredKeyListIamToken = Array("endPoint", "iamToken", "serviceId")
222222

223223
if (cosType == "bluemix_cos") {
224224
if (authMethod == "api_key") {
225-
return required_key_list_iam_api_key
225+
return requiredKeyListIamApiKey
226226
} else if (authMethod == "iam_token") {
227-
return required_key_list_iam_token
227+
return requiredKeyListIamToken
228228
} else {
229229
throw new IllegalArgumentException("Invalid input: authMethod. authMethod is optional but if set, it should have one of the following values: api_key, iam_token")
230230
}
231231
} else if (cosType == "softlayer_cos") {
232-
return required_key_softlayer_cos
232+
return requiredKeySoftlayerCos
233233
} else {
234234
throw new IllegalArgumentException("Invalid input: cosType. cosType is optional but if set, it should have one of the following values: softlayer_cos, bluemix_cos")
235235
}

0 commit comments

Comments
 (0)