Skip to content
Snippets Groups Projects
Commit 46025616 authored by Shivaram Venkataraman's avatar Shivaram Venkataraman Committed by Reynold Xin
Browse files

[CORE] [SPARK-9760] Use Option instead of Some for Ivy repos

This was introduced in #7599

cc rxin brkyvz

Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu>

Closes #8055 from shivaram/spark-packages-repo-fix and squashes the following commits:

890f306 [Shivaram Venkataraman] Remove test case
51d69ee [Shivaram Venkataraman] Add test case for --packages without --repository
c02e0b4 [Shivaram Venkataraman] Use Option instead of Some for Ivy repos
parent 23cf5af0
No related branches found
No related tags found
No related merge requests found
......@@ -284,7 +284,7 @@ object SparkSubmit {
Nil
}
val resolvedMavenCoordinates = SparkSubmitUtils.resolveMavenCoordinates(args.packages,
Some(args.repositories), Some(args.ivyRepoPath), exclusions = exclusions)
Option(args.repositories), Option(args.ivyRepoPath), exclusions = exclusions)
if (!StringUtils.isBlank(resolvedMavenCoordinates)) {
args.jars = mergeFileLists(args.jars, resolvedMavenCoordinates)
if (args.isPython) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment