From dc1a1189e18c5d579570506bdf839f18aa94db6b Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Jan 20 2014 14:32:46 +0000 Subject: ipatests: Remove sudo calls from tasks Sudo calls are not necessary since we log in as a root. Additionally, sudo requires tty in default configuration, which is not acquired when using OpenSSH transport. https://fedorahosted.org/freeipa/ticket/4125 --- diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py index 6c36d34..ad2d15e 100644 --- a/ipatests/test_integration/tasks.py +++ b/ipatests/test_integration/tasks.py @@ -412,8 +412,8 @@ def sync_time(host, server): leaves ntpd stopped. """ - host.run_command(['sudo', 'systemctl', 'stop', 'ntpd']) - host.run_command(['sudo', 'ntpdate', server.hostname]) + host.run_command(['systemctl', 'stop', 'ntpd']) + host.run_command(['ntpdate', server.hostname]) def connect_replica(master, replica):