tgwrap 0.11.7__py3-none-any.whl → 0.11.9__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/cli.py +3 -3
- tgwrap/main.py +12 -1
- {tgwrap-0.11.7.dist-info → tgwrap-0.11.9.dist-info}/METADATA +1 -1
- {tgwrap-0.11.7.dist-info → tgwrap-0.11.9.dist-info}/RECORD +7 -7
- {tgwrap-0.11.7.dist-info → tgwrap-0.11.9.dist-info}/LICENSE +0 -0
- {tgwrap-0.11.7.dist-info → tgwrap-0.11.9.dist-info}/WHEEL +0 -0
- {tgwrap-0.11.7.dist-info → tgwrap-0.11.9.dist-info}/entry_points.txt +0 -0
tgwrap/cli.py
CHANGED
@@ -115,7 +115,7 @@ def main():
|
|
115
115
|
help='dry-run mode, no real actions are executed (only in combination with step-by-step mode)',
|
116
116
|
show_default=True
|
117
117
|
)
|
118
|
-
@click.option('--no-lock', '-n', is_flag=True, default=
|
118
|
+
@click.option('--no-lock', '-n', is_flag=True, default=False,
|
119
119
|
help='Do not apply a lock while executing the command (or set the TGWRAP_NO_LOCK environment variable, only applicable with plan)',
|
120
120
|
envvar='TGWRAP_NO_LOCK', show_default=True,
|
121
121
|
)
|
@@ -184,7 +184,7 @@ def run(command, verbose, debug, dry_run, no_lock, update, upgrade,
|
|
184
184
|
help='dry-run mode, no real actions are executed (only in combination with step-by-step mode)',
|
185
185
|
show_default=True
|
186
186
|
)
|
187
|
-
@click.option('--no-lock', '-n', is_flag=True, default=
|
187
|
+
@click.option('--no-lock', '-n', is_flag=True, default=False,
|
188
188
|
help='Do not apply a lock while executing the command (or set the TGWRAP_NO_LOCK environment variable, only applicable with plan)',
|
189
189
|
envvar='TGWRAP_NO_LOCK', show_default=True,
|
190
190
|
)
|
@@ -361,7 +361,7 @@ def show(verbose, json, working_dir, planfile_dir, terragrunt_args):
|
|
361
361
|
@click.option('--working-dir', '-w', default=None,
|
362
362
|
help='Working directory, when omitted the current directory is used',
|
363
363
|
)
|
364
|
-
@click.option('--no-lock', '-n', is_flag=True, default=
|
364
|
+
@click.option('--no-lock', '-n', is_flag=True, default=False,
|
365
365
|
help='Do not apply a lock while executing the command (or set the TGWRAP_NO_LOCK environment variable, only applicable with plan)',
|
366
366
|
envvar='TGWRAP_NO_LOCK', show_default=True,
|
367
367
|
)
|
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
|
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,13 +1,13 @@
|
|
1
1
|
tgwrap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
tgwrap/analyze.py,sha256=fuET7_L8b6rlv2qnKOYXSlIv5LArvZ39CPktCeQHo7A,10285
|
3
|
-
tgwrap/cli.py,sha256=
|
3
|
+
tgwrap/cli.py,sha256=CmjeWo9QZGbnVlIUxADvaBUGX3Mqyc7w-RKeXSMUNLU,33506
|
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=
|
7
|
+
tgwrap/main.py,sha256=lEu68njHWLCiGN3l9oAO4qCrI4-2dZy6CfjEpP8dw5g,97278
|
8
8
|
tgwrap/printer.py,sha256=frn1PARd8A28mkRCYR6ybN2x0NBULhNOutn4l2U7REY,2754
|
9
|
-
tgwrap-0.11.
|
10
|
-
tgwrap-0.11.
|
11
|
-
tgwrap-0.11.
|
12
|
-
tgwrap-0.11.
|
13
|
-
tgwrap-0.11.
|
9
|
+
tgwrap-0.11.9.dist-info/LICENSE,sha256=VT-AVxIXt3EQTC-7Hy1uPGnrDNJLqfcgLgJD78fiyx4,1065
|
10
|
+
tgwrap-0.11.9.dist-info/METADATA,sha256=BWRQ0d2KJPRTxCSF5eDwSDHOBH8o6jnneQ_JE2XziZg,18355
|
11
|
+
tgwrap-0.11.9.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
12
|
+
tgwrap-0.11.9.dist-info/entry_points.txt,sha256=H8X0PMPmd4aW7Y9iyChZ0Ug6RWGXqhRUvHH-6f6Mxz0,42
|
13
|
+
tgwrap-0.11.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|