From 4ab7838024928dbd58404c1eeeb94611ca973722 Mon Sep 17 00:00:00 2001 From: Dirk Avery Date: Wed, 3 Jul 2019 00:51:01 -0400 Subject: [PATCH 1/2] Fix issue with .env files --- scratchrelaxtv/__init__.py | 2 +- tests/.env.1 | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/scratchrelaxtv/__init__.py b/scratchrelaxtv/__init__.py index ecb11b1..56b1c5f 100644 --- a/scratchrelaxtv/__init__.py +++ b/scratchrelaxtv/__init__.py @@ -265,7 +265,7 @@ def _write_env(self): file_handle.write('unset "${!TF_VAR_@}"\n') for tf_var in self.tf_vars: file_handle.write("".join([ - 'TF_VAR_', + 'export TF_VAR_', tf_var, "=replace\n"])) diff --git a/tests/.env.1 b/tests/.env.1 index e13b55d..85d7650 100644 --- a/tests/.env.1 +++ b/tests/.env.1 @@ -1,11 +1,11 @@ unset "${!TF_VAR_@}" -TF_VAR_acl=replace -TF_VAR_bucket=replace -TF_VAR_create_2=replace -TF_VAR_create_keystore_bucket=replace -TF_VAR_org_ids=replace -TF_VAR_prefix=replace -TF_VAR_problem_var=replace -TF_VAR_region=replace -TF_VAR_tags=replace -TF_VAR_versioning=replace +export TF_VAR_acl=replace +export TF_VAR_bucket=replace +export TF_VAR_create_2=replace +export TF_VAR_create_keystore_bucket=replace +export TF_VAR_org_ids=replace +export TF_VAR_prefix=replace +export TF_VAR_problem_var=replace +export TF_VAR_region=replace +export TF_VAR_tags=replace +export TF_VAR_versioning=replace From a484eb5d7f9f0939179bbd4745a879755d620f17 Mon Sep 17 00:00:00 2001 From: Dirk Avery Date: Wed, 3 Jul 2019 00:51:25 -0400 Subject: [PATCH 2/2] Bump patch version --- .bumpversion.cfg | 2 +- scratchrelaxtv/__init__.py | 2 +- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 32c4498..8a3f96c 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.5.0 +current_version = 0.5.1 commit = False tag = False tag_name = {new_version} diff --git a/scratchrelaxtv/__init__.py b/scratchrelaxtv/__init__.py index 56b1c5f..cfdea61 100644 --- a/scratchrelaxtv/__init__.py +++ b/scratchrelaxtv/__init__.py @@ -20,7 +20,7 @@ import re -__version__ = "0.5.0" +__version__ = "0.5.1" EXIT_OKAY = 0 EXIT_NOT_OKAY = 1 diff --git a/setup.cfg b/setup.cfg index b295658..3b585ff 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ name = scratchrelaxtv description = Terraform developer tool to extract variables and generate variables.tf files. long_description = file: README.md, CHANGELOG.md long_description_content_type = text/markdown -version = 0.5.0 +version = 0.5.1 author = YakDriver author_email = projects@plus3it.com url = https://github.com/YakDriver/scratchrelaxtv