Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Avoid pulling plugins from the Terraform online repositry
Browse files Browse the repository at this point in the history
We'd like to test what we ship, so we should not allow terraform
to pull from the online repository additional plugins, as that would
hide issues in the state that we're trying to test in the CI.
  • Loading branch information
dirkmueller committed Jul 1, 2020
1 parent 5e474f3 commit 5d40e56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/infra/testrunner/platforms/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def _provision_platform(self, masters=-1, workers=-1):
if self.conf.terraform.plugin_dir:
logger.info(f"Installing plugins from {self.conf.terraform.plugin_dir}")
init_cmd += f" -plugin-dir={self.conf.terraform.plugin_dir}"
else:
init_cmd += f" -get-plugins=false"
self._run_terraform_command(init_cmd)

self._run_terraform_command("version")
Expand Down

0 comments on commit 5d40e56

Please sign in to comment.