From f67c99879834a972e1cda2748545d0e84c8eac10 Mon Sep 17 00:00:00 2001 From: Yuriy Novostavskiy Date: Wed, 30 Oct 2024 13:58:39 +0000 Subject: [PATCH] attemp to fix linter --- plugins/lookup/kustomize.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/lookup/kustomize.py b/plugins/lookup/kustomize.py index aae95c58ec..2e0d3ed2f2 100644 --- a/plugins/lookup/kustomize.py +++ b/plugins/lookup/kustomize.py @@ -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) @@ -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" )