Skip to content
Snippets Groups Projects
  • Michael Hanselmann's avatar
    Fix bug in “gnt-node list-storage” · 5ae7cd11
    Michael Hanselmann authored
    
    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: default avatarMichael Hanselmann <hansmi@google.com>
    Reviewed-by: default avatarIustin Pop <iustin@google.com>
    5ae7cd11
storage.py 12.57 KiB