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
This commit is contained in:
Tomas Babej 2014-01-20 09:41:32 +01:00 committed by Petr Viktorin
parent 531ede2904
commit 5403648afd

View File

@ -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):