diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py index 70f14d319..3876708ce 100644 --- a/ipatests/test_integration/test_commands.py +++ b/ipatests/test_integration/test_commands.py @@ -289,7 +289,8 @@ class TestIPACommand(IntegrationTest): """ test_user = 'test-ssh' - master = self.master.hostname + external_master_hostname = \ + self.master.external_hostname # pylint: disable=no-member pub_keys = [] @@ -319,13 +320,13 @@ class TestIPACommand(IntegrationTest): # first connection attempt is a workaround for # https://pagure.io/SSSD/sssd/issue/3669 try: - sshcon.connect(master, username=test_user, + sshcon.connect(external_master_hostname, username=test_user, key_filename=first_priv_key_path, timeout=1) except (paramiko.AuthenticationException, paramiko.SSHException): pass try: - sshcon.connect(master, username=test_user, + sshcon.connect(external_master_hostname, username=test_user, key_filename=first_priv_key_path, timeout=1) except (paramiko.AuthenticationException, paramiko.SSHException) as e: