Fix some reST field lists in docstrings

This patch updates some docstrings to comply with the reST field
lists syntax.

Change-Id: I1b4469f3c90915cdfd6462c0517f6924b263fef6
This commit is contained in:
Yi Zhao 2015-11-12 16:38:45 +08:00
parent 6d6d83e127
commit 0be80d2041
3 changed files with 9 additions and 8 deletions

View File

@ -46,14 +46,14 @@ class AgentCoreResourceExtension(object):
code flow. Thus, it's this function's responsibility to check what
actually changed.
:param context - rpc context
:param data - port data
:param context: rpc context
:param data: port data
"""
@abc.abstractmethod
def delete_port(self, context, data):
"""Delete port from agent extension.
:param context - rpc context
:param data - port data
:param context: rpc context
:param data: port data
"""

View File

@ -143,8 +143,8 @@ def get_column_value(row, col):
def condition_match(row, condition):
"""Return whether a condition matches a row
:param row An OVSDB Row
:param condition A 3-tuple containing (column, operation, match)
:param row: An OVSDB Row
:param condition: A 3-tuple containing (column, operation, match)
"""
col, op, match = condition

View File

@ -210,9 +210,10 @@ class OVSAgentTestFramework(base.BaseOVSLinuxTestCase):
def _expected_plugin_rpc_call(self, call, expected_devices, is_up=True):
"""Helper to check expected rpc call are received
:param call: The call to check
:param expected_devices The device for which call is expected
:param is_up True if expected_devices are devices that are set up,
:param expected_devices: The device for which call is expected
:param is_up: True if expected_devices are devices that are set up,
False if expected_devices are devices that are set down
"""
if is_up: