diff --git a/thefuck/rules/terraform_init_upgrade.py b/thefuck/rules/terraform_init_upgrade.py new file mode 100644 index 0000000..724a84d --- /dev/null +++ b/thefuck/rules/terraform_init_upgrade.py @@ -0,0 +1,10 @@ +from thefuck.shells import shell +from thefuck.utils import for_app + + +@for_app('terraform') +def match(command): + return 'Inconsistent dependency lock file' in command.output + +def get_new_command(command): + return shell.and_('terraform init -upgrade', command.script)