Skip to content

Commit 9f5bd8a

Browse files
author
astancu
committed
Set remove_local_cache var in case ops config doesn't exist
1 parent f7d6151 commit 9f5bd8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ops/cli/terraform.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ def run(self, args):
261261

262262
elif args.subcommand == 'destroy':
263263
generate_module_templates = True
264+
remove_local_cache = ''
265+
264266
if self.ops_config['terraform.remove_local_cache']:
265267
remove_local_cache = 'rm -rf .terraform && '
266268
cmd = "cd {root_dir}/{terraform_path} && " \

0 commit comments

Comments
 (0)