Fix bug in “gnt-node list-storage”
authorMichael Hanselmann <hansmi@google.com>
Tue, 25 Jan 2011 18:28:59 +0000 (19:28 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 26 Jan 2011 10:06:15 +0000 (11:06 +0100)
commit5ae7cd1183c7e47572bc9e7b286f2ac71b1a0104
tree13d0ac2da612d2ccc9672b85d75d7f2425b5c49b
parent4478301b4396b9083217ccdb14e9a6b2825dc487
Fix bug in “gnt-node list-storage”

LVM PV storage units would always show as allocatable, even when they
weren't. For some reason I have not been able to determine, the function
parsing the attributes (“_GetAllocatable”) was not even called and the
list opcode simply returned the attribute string as the value (e.g.
“a-”).  Removing “@staticmethod” did the trick and then I just moved it
to module level.

A QA test is included.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/storage.py
qa/qa_node.py