tgwrap 0.11.7__py3-none-any.whl → 0.11.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
tgwrap/main.py CHANGED
@@ -1196,7 +1196,12 @@ class TgWrap():
1196
1196
  self.printer.verbose(rc)
1197
1197
 
1198
1198
  # if we are planning, and analyze is requested, we need to run the analysis
1199
- if analyze_after_plan and command.lower() == 'plan':
1199
+ if not rc: # this happens in step by step mode
1200
+ pass
1201
+ elif rc.returncode != 0:
1202
+ self.printer.error(f"An error occurred (return code {rc.returncode}) while executing command: {command.lower()}")
1203
+ self.printer.verbose(f"Executed command: {json.dumps(rc.args, indent=2)}")
1204
+ elif analyze_after_plan and command.lower() == 'plan':
1200
1205
  self.printer.verbose('Analyze after plan requested')
1201
1206
  self.analyze(
1202
1207
  exclude_external_dependencies=exclude_external_dependencies,
@@ -2096,6 +2101,12 @@ Note:
2096
2101
  )
2097
2102
  self.printer.verbose(rc)
2098
2103
 
2104
+ # check if TERRAGRUNT_TFPATH is set
2105
+ if os.environ.get('TERRAGRUNT_TFPATH'):
2106
+ self.printer.verbose(f"TERRAGRUNT_TFPATH: {os.environ.get('TERRAGRUNT_TFPATH')}")
2107
+ else:
2108
+ self.printer.verbose("TERRAGRUNT_TFPATH is not set, note that then the default will be to use terraform (instead of tofu)")
2109
+
2099
2110
  def change_log(self, changelog_file, working_dir, include_nbr_of_releases):
2100
2111
  """ Generate a change log """
2101
2112
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tgwrap
3
- Version: 0.11.7
3
+ Version: 0.11.8
4
4
  Summary: A (terragrunt) wrapper around a (terraform) wrapper around ....
5
5
  License: MIT
6
6
  Keywords: terraform,terragrunt,terrasafe,python
@@ -4,10 +4,10 @@ tgwrap/cli.py,sha256=J57Kc5fScMj8__wYp8jprV8x8edOluUGsBx-arAi6kg,33503
4
4
  tgwrap/deploy.py,sha256=gwFdRDzJWjkmEzZ8b0GUSrgvJeOKnpnJm1c6mM80OcY,10259
5
5
  tgwrap/inspector-resources-template.yml,sha256=Mos8NDzzZ3VxdXgeiVL9cmQfRcIXIHMLf79_KLwdXu8,3297
6
6
  tgwrap/inspector.py,sha256=5pW7Ex1lkKRoXY6hZGbCNmSD2iRzgMSfqi9w7gb-AcY,16990
7
- tgwrap/main.py,sha256=KhrClwkHWAoE6qKhxUg-cYEwWMJTCgU0Pl8iG-uV4vU,96621
7
+ tgwrap/main.py,sha256=lEu68njHWLCiGN3l9oAO4qCrI4-2dZy6CfjEpP8dw5g,97278
8
8
  tgwrap/printer.py,sha256=frn1PARd8A28mkRCYR6ybN2x0NBULhNOutn4l2U7REY,2754
9
- tgwrap-0.11.7.dist-info/LICENSE,sha256=VT-AVxIXt3EQTC-7Hy1uPGnrDNJLqfcgLgJD78fiyx4,1065
10
- tgwrap-0.11.7.dist-info/METADATA,sha256=xYA6-IBhqijyoPa0qhtBB-zGlggXsQ3NnsKtVvz6dwY,18355
11
- tgwrap-0.11.7.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
12
- tgwrap-0.11.7.dist-info/entry_points.txt,sha256=H8X0PMPmd4aW7Y9iyChZ0Ug6RWGXqhRUvHH-6f6Mxz0,42
13
- tgwrap-0.11.7.dist-info/RECORD,,
9
+ tgwrap-0.11.8.dist-info/LICENSE,sha256=VT-AVxIXt3EQTC-7Hy1uPGnrDNJLqfcgLgJD78fiyx4,1065
10
+ tgwrap-0.11.8.dist-info/METADATA,sha256=EjNlQYi7yVwXTsLZ9jRFPCS7pi8dXb97hT-kXSCqNfY,18355
11
+ tgwrap-0.11.8.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
12
+ tgwrap-0.11.8.dist-info/entry_points.txt,sha256=H8X0PMPmd4aW7Y9iyChZ0Ug6RWGXqhRUvHH-6f6Mxz0,42
13
+ tgwrap-0.11.8.dist-info/RECORD,,