diff options
| author | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-04-10 18:59:23 +0000 |
|---|---|---|
| committer | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-04-10 20:16:12 +0000 |
| commit | 588b5651dc515d642b110f61c41d78860206841c (patch) | |
| tree | be71e27f1a4fc3a6931e863a373f392021a80e32 /tools | |
| parent | e3521d37b089674275a94ef7aef45715482377d0 (diff) | |
| download | nova-588b5651dc515d642b110f61c41d78860206841c.tar.gz nova-588b5651dc515d642b110f61c41d78860206841c.tar.xz nova-588b5651dc515d642b110f61c41d78860206841c.zip | |
Remove "undefined name" pyflake errors
A number of places tried to use undefined names. This included one
powervm test which turned out to not check anything at all (used
fake implementation of tested method) and needed to be moved.
Make sure that this class of errors causes run_pep8 failure in the
future.
Change-Id: I82ccb63bbc6f6d2b20ecb7f06b2fc22f8f034a33
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/run_pep8.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/run_pep8.sh b/tools/run_pep8.sh index 61b5f8985..7c2ec0130 100755 --- a/tools/run_pep8.sh +++ b/tools/run_pep8.sh @@ -22,4 +22,5 @@ PLUGINS_PATH=${SCRIPT_ROOT}/plugins/xenserver/xenapi/etc/xapi.d/plugins PYTHONPATH=${PLUGINS_PATH} ${PEP8} ./plugins/xenserver/xenapi \ `find plugins/xenserver/xenapi/etc/xapi.d/plugins -type f -perm +111` -! pyflakes nova/ | grep "imported but unused\|redefinition of function" +! pyflakes nova/ | grep "imported but unused\|redefinition of function\|undefined name '" | + grep -v "undefined name '_'" |
