Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4385#discussion_r24311076
  
    --- Diff: ec2/spark_ec2.py ---
    @@ -1026,6 +1042,17 @@ def real_main():
             print >> stderr, "ebs-vol-num cannot be greater than 8"
             sys.exit(1)
     
    +    # Prevent breaking ami_prefix (/, .git and startswith checks)
    +    # Prevent forks with non spark-ec2 names for now.
    +    if opts.spark_ec2_git_repo.endswith("/") or \
    +            opts.spark_ec2_git_repo.endswith(".git") or \
    +            not opts.spark_ec2_git_repo.startswith("https://github.com";) 
or \
    +            not opts.spark_ec2_git_repo.endswith("spark-ec2"):
    +        print >> stderr, "spark-ec2-git-repo must be a github repo and it 
must not have a " \
    +                         "training / or .git. " \
    --- End diff --
    
    This should be `trailing` instead of `training` ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to