Bug 41411 - SyntaxWarning при запуске mlx_fs_dump
Summary: SyntaxWarning при запуске mlx_fs_dump
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: mlnx-tools (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Leontiy Volodin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-22 16:05 MSK by Alexander Makeenkov
Modified: 2021-11-23 18:19 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).