Merge "Fix comment in context.py"

This commit is contained in:
Jenkins 2017-10-06 23:14:13 +00:00 committed by Gerrit Code Review
commit ff5ee1720d

View File

@ -164,13 +164,13 @@ class Context(ContextBaseWithSession):
return self._session
def set_transaction_constraint(self, resource, resource_id, rev_number):
"""Set a revision constraint to enfore before resource_id is changed.
"""Set a revision constraint to enforce before resource_id is changed.
:param resource: collection name of resource (e.g. ports or networks)
:param resource_id: the primary key ID of the individiual resource that
:param resource: Collection name of resource (e.g. ports or networks)
:param resource_id: The primary key ID of the individual resource that
should have its revision number matched before
allowing the transaction to proceed.
:param rev_number: the revision_number that the resource should be at.
:param rev_number: The revision_number that the resource should be at.
"""
self._txn_constraint = _TransactionConstraint(