Skip to content

Commit f67c998

Browse files
committed
attemp to fix linter
1 parent 6afefc7 commit f67c998

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/lookup/kustomize.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,10 @@ def run(
120120
binary_path=None,
121121
opt_dirs=None,
122122
enable_helm=False,
123-
enviroment={},
123+
enviroment=None,
124124
**kwargs
125125
):
126+
126127
executable_path = binary_path
127128
if executable_path is None:
128129
executable_path = get_binary_from_path(name="kustomize", opt_dirs=opt_dirs)
@@ -159,7 +160,7 @@ def run(
159160

160161
if enviroment:
161162
if isinstance(enviroment, str):
162-
if not all([env.count("=") == 1 for env in enviroment.split(" ")]):
163+
if not all(env.count("=") == 1 for env in enviroment.split(" ")):
163164
raise AnsibleLookupError(
164165
"Enviroment should be dict or string in the format key=value"
165166
)

0 commit comments

Comments
 (0)