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:
1 parent
531ede2904
commit
5403648afd
1 file changed
+2
-2
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user