Skip to content

Commit

Permalink
Merge pull request #190 from amplify-education/ignore_extra_handling_…
Browse files Browse the repository at this point in the history
…for_help

Ignore Extra Handling for Help
  • Loading branch information
jconstance-amplify authored Aug 30, 2024
2 parents a89dded + e3435dd commit 39ab30d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ def exec_tf_command(
command_env.update(variable_envvars)
command_env.update(additional_envvars)

if command == "init":
if command == "init" and not any("-help" in argument for argument in arguments):
shutil.rmtree(os.path.join(path, ".terraform"), ignore_errors=True)
# Respect whatever is set, but default to true if it isn't set
command_env.setdefault("TF_PLUGIN_CACHE_MAY_BREAK_DEPENDENCY_LOCK_FILE", "true")

if command == "import":
if command == "import" and not any("-help" in argument for argument in arguments):
response = input(
"WARNING: Running 'import' inside of an existing Terraform directory/state file can result in "
"resources being deleted when apply is run.\nPlease make sure to merge your changes or disable "
Expand Down
2 changes: 1 addition & 1 deletion terrawrap/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Place of record for the package version"""

__version__ = "0.10.0"
__version__ = "0.10.1"
__git_hash__ = "GIT_HASH"

0 comments on commit 39ab30d

Please sign in to comment.