-
Notifications
You must be signed in to change notification settings - Fork 21
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
[REVIEW] - udhcp.user uci commit only new hostnames #785
base: master
Are you sure you want to change the base?
[REVIEW] - udhcp.user uci commit only new hostnames #785
Conversation
c3d2b27
to
5af17e4
Compare
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.
@ruebenramirez I think this all makes sense, the one suggestion from @kylerisse for making a compound if
seems like its worthwhile.
Regarding testing this, I can circle back with you once you have time about getting it running through the real hardware CI via gitlab.
9fd3c2a
to
c4c2352
Compare
Compound conditional is in place now. I'm looking forward to learning more about the hardware testing process. |
https://github.com/socallinuxexpo/scale-network/actions/runs/11266376404/job/31329957560?pr=785 ci choking on script @ruebenramirez . I think you just need to wrap the entire compound if in another set of |
Instead of always committing a provided hostname, only commit new hostnames, where the new hostname doesn't match the current hostname. Resolves socallinuxexpo#442
c4c2352
to
2c9c42b
Compare
Derp! Thanks @kylerisse! Those should all be accounted for now. If we want the extra |
Not your derp. It's a weird thing we do. In this case it was stopping at |
Thanks @ruebenramirez for all the fixups and @kylerisse for your feedback. I request rueben be add to the @socallinuxexpo/tech so that should make this process and future openwrt testing easier 🙂 @ruebenramirez and I will sync up on testing this on real hardware before we merge |
Description of PR
Instead of always committing a provided hostname, only commit new hostnames, where the new hostname doesn't match the current hostname.
Resolves #442
Previous Behavior
Any time a hostname value was available,
udhcp.user
woulduci commit
the new hostname.New Behavior
udhcp.user
will onlyuci commit
the hostname if it is different than the current hostname.Tests
(need some help here)
uci commits
)