summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-galaxy-collection
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2024-03-05 16:09:58 +0100
committerGitHub <noreply@github.com>2024-03-05 16:09:58 +0100
commitdd44449b6ec454a46426a020608fe3763287101f (patch)
treeae443de6bbe8cf165c8afb2dfcbbdf13b7d7fc0a /test/integration/targets/ansible-galaxy-collection
parentFollow fix for test_iptables (#82768) (diff)
downloadansible-dd44449b6ec454a46426a020608fe3763287101f.tar.xz
ansible-dd44449b6ec454a46426a020608fe3763287101f.zip
Use of constant for 644 permission variable (#82762)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'test/integration/targets/ansible-galaxy-collection')
-rw-r--r--test/integration/targets/ansible-galaxy-collection/files/build_bad_tar.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/targets/ansible-galaxy-collection/files/build_bad_tar.py b/test/integration/targets/ansible-galaxy-collection/files/build_bad_tar.py
index 7bba841a98..25fb5dd532 100644
--- a/test/integration/targets/ansible-galaxy-collection/files/build_bad_tar.py
+++ b/test/integration/targets/ansible-galaxy-collection/files/build_bad_tar.py
@@ -11,6 +11,7 @@ import json
import os
import sys
import tarfile
+from ansible.module_utils.common.file import S_IRWXU_RXG_RXO
manifest = {
'collection_info': {
@@ -46,7 +47,7 @@ files = {
def add_file(tar_file, filename, b_content, update_files=True):
tar_info = tarfile.TarInfo(filename)
tar_info.size = len(b_content)
- tar_info.mode = 0o0755
+ tar_info.mode = S_IRWXU_RXG_RXO
tar_file.addfile(tarinfo=tar_info, fileobj=io.BytesIO(b_content))
if update_files: