Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:15249] sonic-mgmt: fix info in testbed_vm_info.py err msg #15523

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

In ansible/library/testbed_vm_info.py, there is a format string passed to a method without the actual formatting applied, i.e. the '{}'s are printed out rather than the desired information they're supposed to represent. This change passes the error message to the method with the correct formatting applied.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

To fix a mistake that was noticed in the printout of an error message.

How did you do it?

Pass the format string with the appropriate formatting applied to the applicable method, as opposed to the raw format string.

How did you verify/test it?

Tested on 202405 against the t0-isolated-d128u128s2, topology, which at the time of this writing is known to encounter the issue that will result in this error message being printed.

Any platform specific information?

Tested on Arista-7060X6-64PE-C256S2.

In ansible/library/testbed_vm_info.py, there is a
format string passed to a method without the
actual formatting applied, i.e. the '{}'s are
printed out rather than the desired information
they're supposed to represent. This change
passes the error message to the method with the
correct formatting applied.
@mssonicbld
Copy link
Collaborator Author

Original PR: #15249

@mssonicbld mssonicbld merged commit 28c2d11 into sonic-net:202405 Nov 13, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants