Exemplo n.º 1
0
 def terraform_config(self):
     try:
         with open(self.paths.terraform_yml, encoding='utf-8') as f:
             config_yml = from_yaml(f)
     except IOError:
         return None
     config_yml['environment'] = config_yml.get('environment', self.meta_config.env_monitoring_id)
     return TerraformConfig.wrap(config_yml)
Exemplo n.º 2
0
 def terraform_config(self):
     try:
         with open(self.paths.terraform_yml) as f:
             config_yml = yaml.safe_load(f)
     except IOError:
         return None
     config_yml['environment'] = config_yml.get('environment', self.meta_config.env_monitoring_id)
     return TerraformConfig.wrap(config_yml)
Exemplo n.º 3
0
 def terraform_config(self):
     try:
         with open(self.paths.terraform_yml) as f:
             config_yml = yaml.safe_load(f)
     except IOError:
         return None
     config_yml['environment'] = config_yml.get('environment', self.meta_config.env_monitoring_id)
     return TerraformConfig.wrap(config_yml)