Github user pwendell commented on a diff in the pull request: https://github.com/apache/spark/pull/270#discussion_r13874441 --- Diff: ec2/spark_ec2.py --- @@ -691,12 +691,18 @@ def real_main(): setup_cluster(conn, master_nodes, slave_nodes, opts, True) elif action == "destroy": - response = raw_input("Are you sure you want to destroy the cluster " + - cluster_name + "?\nALL DATA ON ALL NODES WILL BE LOST!!\n" + + (master_nodes, slave_nodes) = get_existing_cluster( + conn, opts, cluster_name, die_on_error=False) + + print "Are you sure you want to destroy the cluster " + \ + cluster_name + "?\nThe following instances will be terminated:" + for inst in master_nodes + slave_nodes: + print inst --- End diff -- in other locations where we print out nodes, we usually print `inst.public_dns_name` would it make sense to do the same here?
--- 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. ---