diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index b40407973..e88830489 100644 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -1870,7 +1870,7 @@ def create_temp_file(host, directory=None): cmd = ['mktemp'] if directory is not None: cmd += ['-p', directory] - return host.run_command(cmd).stdout_text + return host.run_command(cmd).stdout_text.strip() def create_active_user(host, login, password, first='test', last='user'):