-
Notifications
You must be signed in to change notification settings - Fork 321
[sonic-db-cli] Fix argument parsing skipping namespace #1111
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Connor Roos <[email protected]>
|
/azp run |
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@qiluo-msft can you review this PR? It fixes a bug that was introduced for multi-asic after this PR: #1070 |
|
How did you test (old code vs this PR)? Could you add unit test? |
qiluo-msft
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code lgtm. Suggest add test result in PR description and consider adding testcases.
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@qiluo-msft we have unit tests that should cover this, but it looks like the behavior is not consistent. I had to test it by running it directly on the switch with print statements (this switch was a smartswitch so it had dpu databases but not asics) and I could see that the tool was not populating the namespace variable from the parameter :
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |

Fixes sonic-db-cli argument parsing skipping namespace argument by explicitly setting the options in getopt to select the next space delimitated argument to be namespace and container_name