]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task.ansible: set the ansible_failure.yaml file mode to 0664 598/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 17 Aug 2015 21:06:13 +0000 (16:06 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 18 Aug 2015 14:41:14 +0000 (09:41 -0500)
The failure log was originally created with mode 0600 which does not
allow apache to serve the file. This changes the mode to 0664 to match
the rest of the archived files from a teuthology job.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
teuthology/task/ansible.py

index e4f14695f2e30493818193713811fd1e33f106dd..b94efecd75882909ee3448597658ddc476470d2b 100644 (file)
@@ -288,6 +288,7 @@ class Ansible(Task):
             self.failure_log.name,
             archive_path
         )
+        os.chmod(archive_path, 0664)
 
     def _build_args(self):
         """