-
Notifications
You must be signed in to change notification settings - Fork 7.6k
mgmt: hawkbit: do not prepend custom controllerId #89500
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
mgmt: hawkbit: do not prepend custom controllerId #89500
Conversation
About the compliance failure, note that the email address in the sign-off line should be inside square bracket, I. e. |
d8d4a94
to
663f7d5
Compare
700f1b8
to
c0cc20f
Compare
c0cc20f
to
f68ae2b
Compare
Are there any other changes that are required for this pull request? |
@nealjack please rebase |
This commit changes how the controllerId is generated based on device id, and disentangles the two. The controllerId is what hawkbit uses to uniquely identify a device, and is not necessarily the same as the device id, and should be fully customizeable by the user if needed. Previously, all custom device ids were being prepended with `CONFIG_BOARD`. When a user selects `CONFIG_HAWKBIT_CUSTOM_DEVICE_ID`, they should be able to specify the full controllerId used with hawkbit, without a forced prepend. Signed-off-by: Neal Jackson <[email protected]>
When `CONFIG_HAWKBIT_CUSTOM_DEVICE_ID` is selected, the device_id will no longer be automatically prepended with `CONFIG_BOARD`. Signed-off-by: Neal Jackson <[email protected]>
f68ae2b
to
e2dcc0d
Compare
|
@nealjack needs another rebase, due to some bug, that lets ci fail, that is fixed now on the current main |
Apparently rerun was enough, no need to rebase. |
This PR changes how the controllerId is generated based on device id, and disentangles the two. The controllerId is what hawkbit uses to uniquely identify a device, and is not necessarily the same as the device id, and should be fully customizeable by the user if needed. Previously, all custom device ids were being prepended with
CONFIG_BOARD
. When a user selectsCONFIG_HAWKBIT_CUSTOM_DEVICE_ID
, they should be able to specify the full controllerId used with hawkbit, without a forced prepend.The default handler (
hawkbit_get_device_identity_default
) for returning the controllerId is modified to also include the prefix, so the default behavior withoutCONFIG_HAWKBIT_CUSTOM_DEVICE_ID
enabled is preserved.