We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6afefc7 commit f67c998Copy full SHA for f67c998
plugins/lookup/kustomize.py
@@ -120,9 +120,10 @@ def run(
120
binary_path=None,
121
opt_dirs=None,
122
enable_helm=False,
123
- enviroment={},
+ enviroment=None,
124
**kwargs
125
):
126
+
127
executable_path = binary_path
128
if executable_path is None:
129
executable_path = get_binary_from_path(name="kustomize", opt_dirs=opt_dirs)
@@ -159,7 +160,7 @@ def run(
159
160
161
if enviroment:
162
if isinstance(enviroment, str):
- if not all([env.count("=") == 1 for env in enviroment.split(" ")]):
163
+ if not all(env.count("=") == 1 for env in enviroment.split(" ")):
164
raise AnsibleLookupError(
165
"Enviroment should be dict or string in the format key=value"
166
)
0 commit comments