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

[Mellanox] Update the save_file command in generate_dump to handle folders #3631

Merged

Conversation

DavidZagury
Copy link
Contributor

@DavidZagury DavidZagury commented Nov 27, 2024

What I did

Support saving folders.

How I did it

Add a check to the save_file command, if the path that was provided is to a folder, use an appropriate method.

How to verify it

Previously when a folder was given to be saved using this function, an empty file with the folder name would be created.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Previously when a folder was given to be saved using this function, an empty file with the folder name would be created.
@liat-grozovik liat-grozovik changed the title Update the save_file command in generate_dump to handle folders [Mellanox] Update the save_file command in generate_dump to handle folders Nov 27, 2024
@liat-grozovik liat-grozovik merged commit 3d78cb1 into sonic-net:master Nov 27, 2024
7 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Nov 30, 2024
…lders (sonic-net#3631)

- What I did
Support saving folders.

- How I did it
Add a check to the save_file command, if the path that was provided is to a folder, use an appropriate method.

- How to verify it
Previously when a folder was given to be saved using this function, an empty file with the folder name would be created.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3639

mssonicbld pushed a commit that referenced this pull request Nov 30, 2024
…lders (#3631)

- What I did
Support saving folders.

- How I did it
Add a check to the save_file command, if the path that was provided is to a folder, use an appropriate method.

- How to verify it
Previously when a folder was given to be saved using this function, an empty file with the folder name would be created.
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.

4 participants