Skip to content

Commit 0dbc49c

Browse files
FarfadayFrançois Blondeltsmithv11
authored
fix(general): fix typo dependancies -> dependencies (#6303)
fix(typo): fix typo dependancies -> dependencies Signed-off-by: François Blondel <[email protected]> Co-authored-by: François Blondel <[email protected]> Co-authored-by: Taylor <[email protected]>
1 parent 7635812 commit 0dbc49c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

checkov/common/util/runner_dependency_handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, runner_registry: RunnerRegistry) -> None:
2525

2626
def validate_runner_deps(self) -> None:
2727
"""
28-
Checks if each runner declares any system dependancies by calling each runner's system_deps() function.
28+
Checks if each runner declares any system dependencies by calling each runner's system_deps() function.
2929
This function can safley not exist, but if returns true, call check_system_deps() on the same function.
3030
The function would impliment it's own dependancy checks (see helm/runner.py for example).
3131
Sucessful check_system_deps() should return None, otherwise self.check_type to indicate a runner has failed deps.

checkov/helm/runner.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,17 @@ def parse_helm_chart_details(chart_path: str) -> tuple[str, dict[str, Any] | Non
150150
return chart_path, chart_meta
151151

152152
def check_system_deps(self) -> str | None:
153-
# Ensure local system dependancies are available and of the correct version.
153+
# Ensure local system dependencies are available and of the correct version.
154154
# Returns framework names to skip if deps fail.
155-
logging.info(f"Checking necessary system dependancies for {self.check_type} checks.")
155+
logging.info(f"Checking necessary system dependencies for {self.check_type} checks.")
156156
try:
157157
proc = subprocess.Popen([self.helm_command, 'version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) # nosec
158158
o, e = proc.communicate()
159159
oString = str(o, 'utf-8')
160160
if "Version:" in oString:
161161
helmVersionOutput = oString[oString.find(':') + 2: oString.find(',') - 1]
162162
if "v3" in helmVersionOutput:
163-
logging.info(f"Found working version of {self.check_type} dependancies: {helmVersionOutput}")
163+
logging.info(f"Found working version of {self.check_type} dependencies: {helmVersionOutput}")
164164
return None
165165
else:
166166
return self.check_type
@@ -267,10 +267,10 @@ def get_binary_output(
267267
if e:
268268
if "Warning: Dependencies" in str(e, 'utf-8'):
269269
logging.warning(
270-
f"V1 API chart without Chart.yaml dependancies. Skipping chart dependancy list for {chart_name} at dir: {chart_dir}. Working dir: {target_dir}. Error details: {str(e, 'utf-8')}")
270+
f"V1 API chart without Chart.yaml dependencies. Skipping chart dependancy list for {chart_name} at dir: {chart_dir}. Working dir: {target_dir}. Error details: {str(e, 'utf-8')}")
271271
else:
272272
logging.warning(
273-
f"Error processing helm dependancies for {chart_name} at source dir: {chart_dir}. Working dir: {target_dir}. Error details: {str(e, 'utf-8')}")
273+
f"Error processing helm dependencies for {chart_name} at source dir: {chart_dir}. Working dir: {target_dir}. Error details: {str(e, 'utf-8')}")
274274

275275
helm_command_args = [helm_command, 'template', '--dependency-update', chart_dir]
276276
if runner_filter.var_files:

checkov/kustomize/runner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,9 @@ def _parseKustomization(self, kustomize_dir: str) -> dict[str, Any]:
447447
return metadata
448448

449449
def check_system_deps(self) -> str | None:
450-
# Ensure local system dependancies are available and of the correct version.
450+
# Ensure local system dependencies are available and of the correct version.
451451
# Returns framework names to skip if deps **fail** (ie, return None for a successful deps check).
452-
logging.info(f"Checking necessary system dependancies for {self.check_type} checks.")
452+
logging.info(f"Checking necessary system dependencies for {self.check_type} checks.")
453453

454454
if shutil.which(self.kubectl_command) is not None:
455455
kubectl_version = get_kubectl_version(kubectl_command=self.kubectl_command)

0 commit comments

Comments
 (0)