mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed a bug with prepare_host failing upon existing ipatests folder
https://fedorahosted.org/freeipa/ticket/5748 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
7289ad16cb
commit
2fa0952603
@ -81,7 +81,11 @@ def prepare_host(host):
|
|||||||
host.run_command(['true'], set_env=False)
|
host.run_command(['true'], set_env=False)
|
||||||
|
|
||||||
host.collect_log(env_filename)
|
host.collect_log(env_filename)
|
||||||
host.transport.mkdir_recursive(host.config.test_dir)
|
try:
|
||||||
|
host.transport.mkdir_recursive(host.config.test_dir)
|
||||||
|
except IOError:
|
||||||
|
# The folder already exists
|
||||||
|
pass
|
||||||
host.put_file_contents(env_filename, env_to_script(host.to_env()))
|
host.put_file_contents(env_filename, env_to_script(host.to_env()))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user