MrBr-github / lshca

GNU General Public License v3.0
9 stars 6 forks source link

Fix crash with -ow filter if only key provided #78

Closed MrBr-github closed 2 years ago

MrBr-github commented 2 years ago
#lshca -w traffic -ow RDMA
Traceback (most recent call last):
  File "/hpc/local/bin/lshca", line 2384, in <module>
    main()
  File "/hpc/local/bin/lshca", line 2380, in main
    hca_manager.display_hcas_info()
  File "/hpc/local/bin/lshca", line 488, in display_hcas_info
    out.print_output()
  File "/hpc/local/bin/lshca", line 711, in print_output
    self.filter_out_data()
  File "/hpc/local/bin/lshca", line 676, in filter_out_data
    self.apply_where_output_filters()
  File "/hpc/local/bin/lshca", line 540, in apply_where_output_filters
    output_filter = dict(item.split("=") for item in self.config.where_output_filter)
ValueError: dictionary update sequence element #0 has length 1; 2 is required