Skip to content

Commit

Permalink
attemp to fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
yurnov committed Oct 30, 2024
1 parent 6afefc7 commit f67c998
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/lookup/kustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ def run(
binary_path=None,
opt_dirs=None,
enable_helm=False,
enviroment={},
enviroment=None,
**kwargs
):

executable_path = binary_path
if executable_path is None:
executable_path = get_binary_from_path(name="kustomize", opt_dirs=opt_dirs)
Expand Down Expand Up @@ -159,7 +160,7 @@ def run(

if enviroment:
if isinstance(enviroment, str):
if not all([env.count("=") == 1 for env in enviroment.split(" ")]):
if not all(env.count("=") == 1 for env in enviroment.split(" ")):
raise AnsibleLookupError(
"Enviroment should be dict or string in the format key=value"
)
Expand Down

0 comments on commit f67c998

Please sign in to comment.