only user can see provs config
This commit is contained in:
parent
334f7ffaac
commit
29785a14fd
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue