Revision 4f90370c lib/client/gnt_node.py
b/lib/client/gnt_node.py | ||
---|---|---|
817 | 817 |
@return: the desired exit code |
818 | 818 |
|
819 | 819 |
""" |
820 |
# TODO: Default to ST_FILE if LVM is disabled on the cluster |
|
821 |
if opts.user_storage_type is None: |
|
822 |
opts.user_storage_type = constants.ST_LVM_PV |
|
823 |
|
|
824 |
storage_type = ConvertStorageType(opts.user_storage_type) |
|
825 |
|
|
826 | 820 |
selected_fields = ParseFields(opts.output, _LIST_STOR_DEF_FIELDS) |
827 | 821 |
|
828 | 822 |
op = opcodes.OpNodeQueryStorage(nodes=args, |
829 |
storage_type=storage_type, |
|
823 |
storage_type=opts.user_storage_type,
|
|
830 | 824 |
output_fields=selected_fields) |
831 | 825 |
output = SubmitOpCode(op, opts=opts) |
832 | 826 |
|
Also available in: Unified diff