From 02a8de561878b0e3a99a5046ec8f337b19d6983a Mon Sep 17 00:00:00 2001 From: Freddy Tan Date: Thu, 31 Dec 2015 12:34:35 +0800 Subject: [PATCH] move test folder --- terraform/__init__.py | 5 ++--- test.tf => test/test.tf | 0 test_terraform.py => test/test_terraform.py | 0 3 files changed, 2 insertions(+), 3 deletions(-) rename test.tf => test/test.tf (100%) rename test_terraform.py => test/test_terraform.py (100%) diff --git a/terraform/__init__.py b/terraform/__init__.py index 20b9fa6..d60ddd8 100644 --- a/terraform/__init__.py +++ b/terraform/__init__.py @@ -12,6 +12,7 @@ class Terraform: self.state = state self.variables = dict() if variables is None else variables self.state_data = None + self.parallelism = 50 def apply(self, targets=None, variables=None): variables = self.variables if variables is None else variables @@ -20,9 +21,7 @@ class Terraform: parameters = [] parameters += self._generate_targets(targets) parameters += self._generate_var_string(variables) - # hard code 30 for splunk aws limit on us-west-2 region, - # todo move this to somewhere else - parameters += ['-parallelism=30'] + parameters += ['-parallelism=%s' % self.parallelism] parameters = \ ['terraform', 'apply', '-state=%s' % self.state] + parameters diff --git a/test.tf b/test/test.tf similarity index 100% rename from test.tf rename to test/test.tf diff --git a/test_terraform.py b/test/test_terraform.py similarity index 100% rename from test_terraform.py rename to test/test_terraform.py