Update oslo-incubator cliutils module

Changes -
 * Set pbr 'warnerrors' option for doc build

Change-Id: I44f6f95687463b79443cf81cedaa7a06b03132cd
This commit is contained in:
Matthew Farrellee
2014-07-10 23:10:43 -04:00
parent d14fb4aa97
commit fa955680ea

View File

@@ -223,6 +223,8 @@ def find_resource(manager, name_or_id, **find_args):
Used as a helper for the _find_* methods.
Example:
.. code-block:: python
def _find_hypervisor(cs, hypervisor):
#Get a hypervisor by name or ID.
return cliutils.find_resource(cs.hypervisors, hypervisor)
@@ -287,9 +289,12 @@ def service_type(stype):
"""Adds 'service_type' attribute to decorated function.
Usage:
@service_type('volume')
def mymethod(f):
...
.. code-block:: python
@service_type('volume')
def mymethod(f):
...
"""
def inner(f):
f.service_type = stype