api: controller: Lint fixes.
Fix line-too-long and docstring-section-indent errors.
BUG=b:233893248
TEST=cros lint
Change-Id: I52ac19eb3a38066d4d09d56d27d61c904269a0e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4190794
Tested-by: Alex Klein <saklein@chromium.org>
Commit-Queue: Alex Klein <saklein@chromium.org>
Auto-Submit: Alex Klein <saklein@chromium.org>
Reviewed-by: Cindy Lin <xcl@google.com>
diff --git a/api/controller/image.py b/api/controller/image.py
index 26539d4..dfb1e49 100644
--- a/api/controller/image.py
+++ b/api/controller/image.py
@@ -167,9 +167,9 @@
Copies (after optionally bundling) all required images into the output_dir,
returning a mapping of image type to a list of (output_dir) paths to
- the desired files. Note that currently it is only processing one image (DLC),
- but the future direction is to process all required images. Required images
- are located within output_artifact.artifact_type.
+ the desired files. Note that currently it is only processing one image
+ (DLC), but the future direction is to process all required images. Required
+ images are located within output_artifact.artifact_type.
Args:
in_proto: Proto request defining reqs.
@@ -379,7 +379,7 @@
return controller.RETURN_CODE_SUCCESS
else:
- # Failure, include all of the failed packages in the output when available.
+ # Failure, include all the failed packages in the output when available.
packages = core_result.failed_packages + factory_result.failed_packages
if not packages:
return controller.RETURN_CODE_COMPLETED_UNSUCCESSFULLY
@@ -575,7 +575,8 @@
if not os.path.isfile(image_path) or not image_path.endswith(".bin"):
cros_build_lib.Die(
- "The image.path must be an existing image file with a .bin extension."
+ "The image.path must be an existing image file with a .bin "
+ "extension."
)
if config.validate_only: