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 json import load, dumps
|
||||||
from subprocess import run
|
from subprocess import run
|
||||||
from pkg_resources import *
|
from pkg_resources import *
|
||||||
|
@ -13,7 +13,7 @@ def create_devops_terraform_build_config(stage,
|
||||||
module,
|
module,
|
||||||
additional_vars,
|
additional_vars,
|
||||||
build_dir_name='target',
|
build_dir_name='target',
|
||||||
output_json_name='output.json',
|
output_json_name='out_' + module + '.json',
|
||||||
use_workspace=True,
|
use_workspace=True,
|
||||||
use_package_common_files=True,
|
use_package_common_files=True,
|
||||||
build_commons_path=None,
|
build_commons_path=None,
|
||||||
|
@ -115,6 +115,7 @@ class DevopsTerraformBuild(DevopsBuild):
|
||||||
self.print_terraform_command(tf)
|
self.print_terraform_command(tf)
|
||||||
with open(self.build_path() + self.output_json_name, "w") as output_file:
|
with open(self.build_path() + self.output_json_name, "w") as output_file:
|
||||||
output_file.write(dumps(result))
|
output_file.write(dumps(result))
|
||||||
|
chmod(self.build_path() + self.output_json_name, 0o600)
|
||||||
|
|
||||||
def read_output_json(self):
|
def read_output_json(self):
|
||||||
with open(self.build_path() + self.output_json_name, 'r') as f:
|
with open(self.build_path() + self.output_json_name, 'r') as f:
|
||||||
|
|
Loading…
Add table
Reference in a new issue