We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7224ba0 commit eed6fc9Copy full SHA for eed6fc9
src/ops/cli/terraform.py
@@ -351,6 +351,18 @@ def run(self, args):
351
terraform_path=terraform_path,
352
vars=vars,
353
)
354
+ elif args.subcommand is not None:
355
+ # Examples:
356
+ # - command = "state push errored.tfstate"
357
+ # - command = "force-unlock <LOCK_ID>"
358
+ generate_module_templates = True
359
+ cmd = "cd {root_dir}/{terraform_path} && {terraform_init_command} " \
360
+ "terraform {command}".format(
361
+ command=args.subcommand,
362
+ root_dir=self.root_dir,
363
+ terraform_init_command=terraform_init_command,
364
+ terraform_path=terraform_path,
365
+ )
366
else:
367
display('Terraform subcommand \'%s\' not found' % args.subcommand, color='red')
368
return
0 commit comments