-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Provide an option to disable writing developer certificate #9804
Conversation
@aashishc1988, thank you for your changes. |
Please update the PR description to follow the PR template. |
Done |
@aashishc1988 You also need to add a |
@bridadan @theotherjimmy Ready for another review |
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.
Good enough for me! Thanks for the changes, be sure to update the release notes section in your description with the new argument!
tools/device_management.py
Outdated
@@ -51,6 +51,9 @@ def __init__(self, *args, **kwargs): | |||
"Create or transform a manifest. " | |||
"Use {} [command] -h for help on each command." | |||
).format(self.parser.prog) | |||
subparserActionLength = len(self.parser._subparsers._actions) | |||
initParser = self.parser._subparsers._actions[subparserActionLength-1].choices['init'] |
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.
Oh we also talked offline about trying to filter based on the type of the subparser action instead of assuming it was at the end of the array, did you have any luck with that?
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.
@aashishc1988 ^^^
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.
I saw this but unfortunately I wouldnt get around this until later this week as we have some more pressing issues for 5.12 release. Lets keep this PR open, and I will fix this as soon as I can.
This PR is at risk of missing 5.12 release as it's marked as "needs: review". Code freeze is coming! On Friday 1st. Please review the changes ASAP. |
@theotherjimmy I made some changes to stop assuming SubParser position in the list. Can you review the latest changes? |
CI started |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
cc @teetak01 |
Description
Addresses #8178
We have an option now "--disable-cert" for "mbed dm init" which disables writing developer certificate to mbed_cloud_dev_credentials.c
Pull request type
Release Notes
It is possible now to disable writing developer certificate to mbed_cloud_dev_credentials using an option --no-developer-cert with "mbed dm init" command