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

    https://github.com/apache/spark/pull/5172#discussion_r32899327
  
    --- Diff: ec2/spark_ec2.py ---
    @@ -502,8 +502,10 @@ def launch_cluster(conn, opts, cluster_name):
                                     if opts.additional_security_group in 
(sg.name, sg.id)]
         print "Launching instances..."
     
    +    # Check if the AMI exists
         try:
    -        image = conn.get_all_images(image_ids=[opts.ami])[0]
    +        if conn.get_image(image_id=opts.ami) is None:
    +            raise Exception()
    --- End diff --
    
    I would say not. The exception handling is hard to follow in this flow due 
to the bug in boto.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to