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 f0691f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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,
enviroment={},
enviroment=None,
**kwargs
):
executable_path = binary_path
Expand Down Expand Up @@ -159,7 +159,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 f0691f5

Please sign in to comment.