Skip to content

Commit

Permalink
Fix TF binary not requiring to be copied
Browse files Browse the repository at this point in the history
  • Loading branch information
arcivanov committed Dec 15, 2023
1 parent 9b4eb66 commit 1aa8d7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use_plugin("filter_resources")

name = "kubernator"
version = "1.0.2"
version = "1.0.3"

summary = "Kubernator is the a pluggable framework for K8S provisioning"
authors = [Author("Express Systems USA, Inc.", "")]
Expand Down
4 changes: 1 addition & 3 deletions src/main/python/kubernator/plugins/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import tempfile
import zipfile
from pathlib import Path
from shutil import which, copy
from shutil import which

from kubernator.api import (KubernatorPlugin, Globs, StripNL,
scan_dir,
Expand Down Expand Up @@ -70,8 +70,6 @@ def register(self, version=None):
tf_zip = zipfile.ZipFile(tf_file_dl)
tf_zip.extractall(self.tf_dir.name)

copy(Path(self.tf_dir.name) / "terraform", tf_file)

os.chmod(tf_file, 0o500)
prepend_os_path(str(self.tf_dir))
else:
Expand Down

0 comments on commit 1aa8d7e

Please sign in to comment.