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

Replace /dev/stdin #30

Closed
wants to merge 2 commits into from
Closed

Replace /dev/stdin #30

wants to merge 2 commits into from

Conversation

ganglyu
Copy link
Collaborator

@ganglyu ganglyu commented Jan 6, 2023

Why I did it

When we use /dev/stdin as input file, CLI command can only read file for one time.
sonic-net/sonic-utilities#2529
This PR will validate config file at first, and then CLI command will read config file for more than one time, so /dev/stdin does not work with latest code.

How I did it

Use temp file to replace /dev/stdin

How to verify it

Run unit test.

@qiluo-msft
Copy link
Contributor

Let's hold on this PR and revisit the behavior trigger PR sonic-net/sonic-utilities#2529

@qiluo-msft qiluo-msft closed this Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants