diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 3de0e74..8c1f761 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.8.5 +current_version = 0.8.6 commit = True tag = False diff --git a/README.md b/README.md index dae478f..1540092 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ python-terraform is a python module provide a wrapper of `terraform` command lin ## Usage #### For any terraform command - from python_terraform import Terraform + from python_terraform import * t = Terraform() return_code, stdout, stderr = t.(*arguments, **options) @@ -20,13 +20,13 @@ python-terraform is a python module provide a wrapper of `terraform` command lin to be able to call the method, you could call cmd_name by adding `_cmd` after command name, for example, `import` here could be called by - from python_terraform import Terraform + from python_terraform import * t = Terraform() return_code, stdout, stderr = t.import_cmd(*arguments, **options) or just call cmd method directly - from python_terraform import Terraform + from python_terraform import * t = Terraform() return_code, stdout, stderr = t.cmd(, *arguments, **options) @@ -93,19 +93,19 @@ In shell: In python-terraform: - from python_terraform import Terraform + from python_terraform import * tf = Terraform(working_dir='/home/test') tf.apply(no_color=IsFlagged, refresh=False, var={'a':'b', 'c':'d'}) or - from python_terraform import Terraform + from python_terraform import * tf = Terraform() tf.apply('/home/test', no_color=IsFlagged, refresh=False, var={'a':'b', 'c':'d'}) or - from python_terraform import Terraform + from python_terraform import * tf = Terraform(working_dir='/home/test', variables={'a':'b', 'c':'d'}) tf.apply(no_color=IsFlagged, refresh=False) @@ -117,7 +117,7 @@ In shell: In python-terraform: - from python_terraform import Terraform + from python_terraform import * tf = terraform(working_dir='/home/test') tf.fmt(diff=True) diff --git a/python_terraform/__init__.py b/python_terraform/__init__.py index fe0d3d3..896d2e0 100644 --- a/python_terraform/__init__.py +++ b/python_terraform/__init__.py @@ -294,8 +294,9 @@ class VariableFiles(object): def create(self, variables): with tempfile.NamedTemporaryFile('w+t', delete=False) as temp: - logging.debug('{0} is created'.format(temp.name)) + log.debug('{0} is created'.format(temp.name)) self.files.append(temp) + log.debug('variables wrote to tempfile: {0}'.format(str(variables))) temp.write(json.dumps(variables)) file_name = temp.name diff --git a/setup.py b/setup.py index e2011fe..988cc76 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ except IOError: setup( name=module_name, - version='0.8.5', + version='0.8.6', url='https://github.com/beelit94/python-terraform', license='MIT', author='Freddy Tan',