Bug 41411

Summary: SyntaxWarning при запуске mlx_fs_dump
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: mlnx-toolsAssignee: Leontiy Volodin <lvol>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: lvol
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2021-11-22 16:05:14 MSK
# apt-get install mlnx-tools
# mlx_fs_dump --help
/usr/bin/mlx_fs_dump:294: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if (i % 2) and (cr is not "0"):
/usr/bin/mlx_fs_dump:306: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if node.dst_type is not "0":
/usr/bin/mlx_fs_dump:310: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if node.dst_vhca_id_valid is not 0:
/usr/bin/mlx_fs_dump:319: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if (i % 2) and (cr is not "0"):
/usr/bin/mlx_fs_dump:324: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if cr is "IPv4":
/usr/bin/mlx_fs_dump:340: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if index is not -1:
/usr/bin/mlx_fs_dump:351: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if index is not -1:
/usr/bin/mlx_fs_dump:446: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if match_enable is "NO_MATCH":

Версия пакета: mlnx-tools-5.1.3-alt1
Comment 1 Repository Robot 2021-11-23 18:19:47 MSK
mlnx-tools-5.1.3-alt2 -> sisyphus:

 Mon Nov 22 2021 Leontiy Volodin <lvol@altlinux> 5.1.3-alt2
 - Added requires (ALT #41412).
 - Fixed syntax errors in mlx_fs_dump (ALT #41411).