summaryrefslogtreecommitdiff
path: root/pytests
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2018-03-23 12:11:14 -0400
committerJonathan Abrahams <jonathan@mongodb.com>2018-03-23 12:11:33 -0400
commitd91abcb54e4b867d33cc2faacd4087f04feb1b01 (patch)
tree56aabe05f58be15aeeac63a71f6ed4ebc7d8eb19 /pytests
parent49138e688e51b8397bc32d8c875ea10ef968af4c (diff)
downloadmongo-d91abcb54e4b867d33cc2faacd4087f04feb1b01.tar.gz
SERVER-34062 powertest.py attempts to access an attribute named address_type rather than its value
Diffstat (limited to 'pytests')
-rwxr-xr-xpytests/powertest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pytests/powertest.py b/pytests/powertest.py
index 5de67a2f588..e4d99833343 100755
--- a/pytests/powertest.py
+++ b/pytests/powertest.py
@@ -2535,7 +2535,7 @@ Examples:
if not hasattr(aws_status, address_type):
raise Exception("Cannot determine address_type {} from AWS EC2 status {}".format(
address_type, aws_status))
- ssh_host = aws_status.address_type
+ ssh_host = getattr(aws_status, address_type)
if ssh_user is None:
ssh_user_host = ssh_host
else: