Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df76349

Browse files
darabossarutak
authored andcommitted
[SPARK-8902] Correctly print hostname in error
With "+" the strings are separate expressions, and format() is called on the last string before concatenation. (So substitution does not happen.) Without "+" the string literals are merged first by the parser, so format() is called on the complete string. Should I make a JIRA for this? Author: Daniel Darabos <[email protected]> Closes apache#7288 from darabos/patch-2 and squashes the following commits: be0d3b7 [Daniel Darabos] Correctly print hostname in error (cherry picked from commit 5687f76) Signed-off-by: Kousuke Saruta <[email protected]>
1 parent 3f6e6e0 commit df76349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ec2/spark_ec2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,8 +1111,8 @@ def ssh(host, opts, command):
11111111
# If this was an ssh failure, provide the user with hints.
11121112
if e.returncode == 255:
11131113
raise UsageError(
1114-
"Failed to SSH to remote host {0}.\n" +
1115-
"Please check that you have provided the correct --identity-file and " +
1114+
"Failed to SSH to remote host {0}.\n"
1115+
"Please check that you have provided the correct --identity-file and "
11161116
"--key-pair parameters and try again.".format(host))
11171117
else:
11181118
raise e

0 commit comments

Comments
 (0)