diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-06-11 18:43:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-06-11 18:43:09 +0000 |
| commit | 109e1b525dc96fd2d523dbc41c018ee975030e82 (patch) | |
| tree | c33556b56380515caca0219f49e4f2f69bb3dcb8 /openstack/common/rootwrap/wrapper.py | |
| parent | 165b98415d3949f8a9dddbdbc1f304fb7d257718 (diff) | |
| parent | 7119e29cb535426c587eaf2cfc2cfcd11a422df0 (diff) | |
| download | oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.tar.gz oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.tar.xz oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.zip | |
Merge "Enable hacking H404 test."
Diffstat (limited to 'openstack/common/rootwrap/wrapper.py')
| -rw-r--r-- | openstack/common/rootwrap/wrapper.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/openstack/common/rootwrap/wrapper.py b/openstack/common/rootwrap/wrapper.py index d488ddd..5390c1b 100644 --- a/openstack/common/rootwrap/wrapper.py +++ b/openstack/common/rootwrap/wrapper.py @@ -31,10 +31,7 @@ class NoFilterMatched(Exception): class FilterMatchNotExecutable(Exception): - """ - This exception is raised when a filter matched but no executable was - found. - """ + """Raised when a filter matched but no executable was found.""" def __init__(self, match=None, **kwargs): self.match = match @@ -122,9 +119,10 @@ def load_filters(filters_path): def match_filter(filter_list, userargs, exec_dirs=[]): - """ - Checks user command and arguments through command filters and - returns the first matching filter. + """Checks user command and arguments through command filters. + + Returns the first matching filter. + Raises NoFilterMatched if no filter matched. Raises FilterMatchNotExecutable if no executable was found for the best filter match. |
