minor fixes

This commit is contained in:
jem 2020-03-04 09:27:46 +01:00
parent ac9c4ab104
commit 6c23144750
3 changed files with 7 additions and 5 deletions

View file

@ -27,7 +27,7 @@ use_plugin("python.distutils")
default_task = "publish" default_task = "publish"
name = "ddadevops" name = "ddadevops"
version = "0.4.0.dev12" version = "0.4.0.dev13"
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud" summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
description = __doc__ description = __doc__
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")] authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]

View file

@ -27,10 +27,11 @@ class AwsMixin(DevopsTerraformBuild):
def init_client(self): def init_client(self):
tf = Terraform(working_dir=self.build_path()) tf = Terraform(working_dir=self.build_path())
tf.init(backend_config=self.backend_config()) tf.init(backend_config=self.backend_config())
try: if self.use_workspace:
tf.workspace('select', slef.stage) try:
except: tf.workspace('select', slef.stage)
tf.workspace('new', self.stage) except:
tf.workspace('new', self.stage)
return tf return tf
def plan(self): def plan(self):

View file

@ -1,4 +1,5 @@
from string import Template from string import Template
from subprocess import run
from .python_util import * from .python_util import *
from .devops_build import DevopsBuild from .devops_build import DevopsBuild