only user can see provs config

This commit is contained in:
jerger 2022-12-09 14:08:20 +01:00
parent 334f7ffaac
commit 29785a14fd

View file

@ -1,4 +1,4 @@
from os import path
from os import path, chmod
from json import load, dumps
from subprocess import run
from pkg_resources import *
@ -13,7 +13,7 @@ def create_devops_terraform_build_config(stage,
module,
additional_vars,
build_dir_name='target',
output_json_name='output.json',
output_json_name='out_' + module + '.json',
use_workspace=True,
use_package_common_files=True,
build_commons_path=None,
@ -115,6 +115,7 @@ class DevopsTerraformBuild(DevopsBuild):
self.print_terraform_command(tf)
with open(self.build_path() + self.output_json_name, "w") as output_file:
output_file.write(dumps(result))
chmod(self.build_path() + self.output_json_name, 0o600)
def read_output_json(self):
with open(self.build_path() + self.output_json_name, 'r') as f: