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
This commit is contained in:
Stanislaw Pitucha
2013-04-10 18:59:23 +00:00
parent ff06b94958
commit 2f9a4ec598
2 changed files with 1 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ from nova.virt.baremetal import db
QUEUE = Queue.Queue()
LOG = logging.getLogger(__name__)
# All functions are called from deploy() directly or indirectly.

View File

@@ -197,7 +197,6 @@ def main():
cliutils.validate_args(fn, *fn_args, **fn_kwargs)
except cliutils.MissingArgs as e:
print(fn.__doc__)
parser.print_help()
print(e)
return(1)
try: