Skip to content

Commit 826455f

Browse files
author
Jean-Martin Archer
committed
[SPARK-2611] Implementing recommendations
As per apache#270 (comment)
1 parent 27b0a36 commit 826455f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ec2/spark_ec2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,10 +694,10 @@ def real_main():
694694
(master_nodes, slave_nodes) = get_existing_cluster(
695695
conn, opts, cluster_name, die_on_error=False)
696696

697-
print "Are you sure you want to destroy the cluster " + \
698-
cluster_name + "?\nThe following instances will be terminated:"
697+
print "Are you sure you want to destroy the cluster %s?" % cluster_name
698+
print "The following instances will be terminated:"
699699
for inst in master_nodes + slave_nodes:
700-
print inst
700+
print inst.public_dns_name
701701

702702
response = raw_input("ALL DATA ON ALL NODES WILL BE LOST!!\n" +
703703
"Destroy cluster " + cluster_name + " (y/N): ")

0 commit comments

Comments
 (0)