• Guido Trotter's avatar
    LUSetClusterParams: improve volume group removal · b2482333
    Guido Trotter authored
    
    
    Currently LUSetClusterParams will remove the volume group if the vg_name
    field passed in is not true, but not None. Setting the target volume
    group to False or the empty string, though, is a bad idea because it's
    not a boolean value, and at cluster init we set it to None if
    --no-lvm-storage is passed. With this fix we handle '' (or any other
    non-None false value) as the "unset" value, but actually store None in
    the config.
    Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
    Reviewed-by: default avatarIustin Pop <iustin@google.com>
    b2482333
cmdlib.py 242 KB