From 725c512da6609c90818d309c28d56b355156232a Mon Sep 17 00:00:00 2001 From: ericxiett Date: Sat, 1 Jan 2022 09:37:54 +0000 Subject: [PATCH] Fix some typos Change-Id: I00a38c91c6ad195b38b43da47bce2ac5bff319fe --- cyborg/accelerator/drivers/fpga/intel/driver.py | 2 +- cyborg/api/controllers/v2/deployables.py | 2 +- cyborg/image/api.py | 4 ++-- cyborg/objects/extarq/ext_arq_job.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cyborg/accelerator/drivers/fpga/intel/driver.py b/cyborg/accelerator/drivers/fpga/intel/driver.py index e491e210..4bf2f0b3 100644 --- a/cyborg/accelerator/drivers/fpga/intel/driver.py +++ b/cyborg/accelerator/drivers/fpga/intel/driver.py @@ -31,7 +31,7 @@ LOG = logging.getLogger(__name__) @cyborg.privsep.sys_admin_pctxt.entrypoint def _fpga_program_privileged(cmd_args): # NOTE(Sundar): If we take cmd as parameter, this function can - # be abused to run abritrary commands in privileged mode. So + # be abused to run arbitrary commands in privileged mode. So # only cmd_args are passed in. # TODO(Sundar) Do not hardcode fpgaconf. # Use right tool based on bitstream type. diff --git a/cyborg/api/controllers/v2/deployables.py b/cyborg/api/controllers/v2/deployables.py index 2799556e..93b86a4a 100644 --- a/cyborg/api/controllers/v2/deployables.py +++ b/cyborg/api/controllers/v2/deployables.py @@ -59,7 +59,7 @@ class Deployable(base.APIBase): """The json list of attributes of the deployable""" rp_uuid = types.uuid - """The uuid of resouce provider which represents this deployable""" + """The uuid of resource provider which represents this deployable""" driver_name = wtypes.text """The driver name of this deployables""" diff --git a/cyborg/image/api.py b/cyborg/image/api.py index 7333762d..4e58a216 100644 --- a/cyborg/image/api.py +++ b/cyborg/image/api.py @@ -11,7 +11,7 @@ # under the License. """ -Main abstraction layer for retrieving and storing information about acclerator +Main abstraction layer for retrieving and storing information about accelerator images used by the cyborg agent layer. """ @@ -24,7 +24,7 @@ LOG = log.getLogger(__name__) class API(object): """Responsible for exposing a relatively stable internal API for other - modules in Cyborg to retrieve information about acclerator images. + modules in Cyborg to retrieve information about accelerator images. """ def _get_session_and_image_id(self, context, id_or_uri): diff --git a/cyborg/objects/extarq/ext_arq_job.py b/cyborg/objects/extarq/ext_arq_job.py index fad0e9cc..372b9603 100644 --- a/cyborg/objects/extarq/ext_arq_job.py +++ b/cyborg/objects/extarq/ext_arq_job.py @@ -31,7 +31,7 @@ class ExtARQJobMixin(object): """Mixin Class for ExtARQ async job management.""" def _bind_job(self, context, deployable): - """The bind process of an acclerator.""" + """The bind process of an accelerator.""" check_extra_job = getattr(self, "_need_extra_bind_job", None) need_job = False if check_extra_job: