Skip to content

Commit

Permalink
fix typo envion e -> envrion
Browse files Browse the repository at this point in the history
  • Loading branch information
yurnov committed Oct 30, 2024
1 parent 053147a commit c29e399
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/lookup/kustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def run(
binary_path=None,
opt_dirs=None,
enable_helm=False,
use_local_env=False,
enviroment={},
**kwargs
):
executable_path = binary_path
Expand Down Expand Up @@ -155,7 +155,7 @@ def run(
if enable_helm:
command += ["--enable-helm"]

evrion = os.environ.copy()
envrion = os.environ.copy()

if enviroment:
if isinstance(enviroment, str):
Expand All @@ -165,10 +165,10 @@ def run(
)
for env in enviroment.split(" "):
key, value = env.split("=")
evrion[key] = value
envrion[key] = value
if isinstance(enviroment, dict):
for key, value in enviroment.items():
evrion[key] = value
envrion[key] = value

(ret, out, err) = run_command(command, environ=environ)
if ret != 0:
Expand Down

0 comments on commit c29e399

Please sign in to comment.