pre-commit: add codespell (#25571)

This commit is contained in:
Adeeb Shihadeh
2022-08-30 11:20:55 -07:00
committed by GitHub
parent ff3ebbb13b
commit 6590fb2b93
48 changed files with 74 additions and 65 deletions
+2 -2
View File
@@ -241,7 +241,7 @@ def flash_partition(target_slot_number: int, partition: dict, cloudlog, standalo
else:
extract_compressed_image(target_slot_number, partition, cloudlog)
# Write hash after successfull flash
# Write hash after successful flash
if not full_check:
with open(path, 'wb+') as out:
out.seek(partition['size'])
@@ -257,7 +257,7 @@ def swap(manifest_path: str, target_slot_number: int, cloudlog) -> None:
while True:
out = subprocess.check_output(f"abctl --set_active {target_slot_number}", shell=True, stderr=subprocess.STDOUT, encoding='utf8')
if ("No such file or directory" not in out) and ("lun as boot lun" in out):
cloudlog.info(f"Swap successfull {out}")
cloudlog.info(f"Swap successful {out}")
break
else:
cloudlog.error(f"Swap failed {out}")
+1 -1
View File
@@ -287,7 +287,7 @@ class Tici(HardwareBase):
]
upload = [
# Create root Hierarchy Token Bucket that sends all trafic to 1:20
# Create root Hierarchy Token Bucket that sends all traffic to 1:20
(True, tc + ["qdisc", "add", "dev", adapter, "root", "handle", "1:", "htb", "default", "20"]),
# Create class 1:20 with specified rate limit