Fix some typos
Change-Id: I00a38c91c6ad195b38b43da47bce2ac5bff319fe
This commit is contained in:
parent
601b8676de
commit
725c512da6
@ -31,7 +31,7 @@ LOG = logging.getLogger(__name__)
|
|||||||
@cyborg.privsep.sys_admin_pctxt.entrypoint
|
@cyborg.privsep.sys_admin_pctxt.entrypoint
|
||||||
def _fpga_program_privileged(cmd_args):
|
def _fpga_program_privileged(cmd_args):
|
||||||
# NOTE(Sundar): If we take cmd as parameter, this function can
|
# 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.
|
# only cmd_args are passed in.
|
||||||
# TODO(Sundar) Do not hardcode fpgaconf.
|
# TODO(Sundar) Do not hardcode fpgaconf.
|
||||||
# Use right tool based on bitstream type.
|
# Use right tool based on bitstream type.
|
||||||
|
@ -59,7 +59,7 @@ class Deployable(base.APIBase):
|
|||||||
"""The json list of attributes of the deployable"""
|
"""The json list of attributes of the deployable"""
|
||||||
|
|
||||||
rp_uuid = types.uuid
|
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
|
driver_name = wtypes.text
|
||||||
"""The driver name of this deployables"""
|
"""The driver name of this deployables"""
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# under the License.
|
# 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.
|
images used by the cyborg agent layer.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ LOG = log.getLogger(__name__)
|
|||||||
class API(object):
|
class API(object):
|
||||||
|
|
||||||
"""Responsible for exposing a relatively stable internal API for other
|
"""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):
|
def _get_session_and_image_id(self, context, id_or_uri):
|
||||||
|
@ -31,7 +31,7 @@ class ExtARQJobMixin(object):
|
|||||||
"""Mixin Class for ExtARQ async job management."""
|
"""Mixin Class for ExtARQ async job management."""
|
||||||
|
|
||||||
def _bind_job(self, context, deployable):
|
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)
|
check_extra_job = getattr(self, "_need_extra_bind_job", None)
|
||||||
need_job = False
|
need_job = False
|
||||||
if check_extra_job:
|
if check_extra_job:
|
||||||
|
Loading…
Reference in New Issue
Block a user