cleanup: fix IAllocator hypervisor usage
authorIustin Pop <iustin@google.com>
Sun, 14 Dec 2008 12:03:38 +0000 (12:03 +0000)
committerIustin Pop <iustin@google.com>
Sun, 14 Dec 2008 12:03:38 +0000 (12:03 +0000)
commita0add446ad848ec8271d8dc0642a5b564d8847b6
treed6b345e07586eaed4228830a7674892149308426
parent4504c3d66847d28ecb22fbda3d10285b993bda61
cleanup: fix IAllocator hypervisor usage

Two problems: the iallocator.hypervisor wasn't initialized to None in
the constructor, so pylint doesn't realize it's initialized later with
setattr.

Second, 'hypervisor' is a module, so we shouldn't use it as a variable.

Reviewed-by: amishchenko
lib/cmdlib.py