move test folder

This commit is contained in:
Freddy Tan 2015-12-31 12:34:35 +08:00
parent f1c7a7e952
commit 02a8de5618
3 changed files with 2 additions and 3 deletions

View file

@ -12,6 +12,7 @@ class Terraform:
self.state = state self.state = state
self.variables = dict() if variables is None else variables self.variables = dict() if variables is None else variables
self.state_data = None self.state_data = None
self.parallelism = 50
def apply(self, targets=None, variables=None): def apply(self, targets=None, variables=None):
variables = self.variables if variables is None else variables variables = self.variables if variables is None else variables
@ -20,9 +21,7 @@ class Terraform:
parameters = [] parameters = []
parameters += self._generate_targets(targets) parameters += self._generate_targets(targets)
parameters += self._generate_var_string(variables) parameters += self._generate_var_string(variables)
# hard code 30 for splunk aws limit on us-west-2 region, parameters += ['-parallelism=%s' % self.parallelism]
# todo move this to somewhere else
parameters += ['-parallelism=30']
parameters = \ parameters = \
['terraform', 'apply', '-state=%s' % self.state] + parameters ['terraform', 'apply', '-state=%s' % self.state] + parameters