Merge "Restore default log path for image prepare" into stable/ussuri
This commit is contained in:
commit
4913408a05
|
@ -588,8 +588,7 @@ class BaseImageUploader(object):
|
||||||
else:
|
else:
|
||||||
raise OSError('Log output is not a file.')
|
raise OSError('Log output is not a file.')
|
||||||
except (AttributeError, OSError):
|
except (AttributeError, OSError):
|
||||||
tmp_dir = tempfile.gettempdir()
|
log_f = os.path.join('/var/log', log_name)
|
||||||
log_f = os.path.join(tmp_dir, log_name)
|
|
||||||
try:
|
try:
|
||||||
LOG.info('Ansible action starting')
|
LOG.info('Ansible action starting')
|
||||||
ansible.AnsiblePlaybookAction(
|
ansible.AnsiblePlaybookAction(
|
||||||
|
|
|
@ -1311,8 +1311,8 @@ class TestSkopeoImageUploader(base.TestCase):
|
||||||
override_ansible_cfg=(
|
override_ansible_cfg=(
|
||||||
"[defaults]\n"
|
"[defaults]\n"
|
||||||
"stdout_callback=tripleo_dense\n"
|
"stdout_callback=tripleo_dense\n"
|
||||||
"log_path=%s/tripleo-container-image-prepare-ansible.log\n"
|
"log_path="
|
||||||
% os.path.dirname(logfile.name)
|
"/var/log/tripleo-container-image-prepare-ansible.log\n"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue