-
Notifications
You must be signed in to change notification settings - Fork 139
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
Don't load non-json rockon config files? #2473
Comments
@kanecko Thanks for creating this issue, much appreciated. And I totally agree. |
Maybe. My first priority is setting up my home network before my vacation time runs out :) |
Update rockon.py - only load files with a .JSON extension #2473
Closing as: |
This happened on 4.5.4-0.
I have added
omada-controller.json
to the usual place in order to install it as a rockon via WebUI. Because I make a lot of amendments during testing, my text editor creates a backup file to the same dir but appends a tilde:omada-controller.json~
I have found that when clicking the Update button in WebUI, an arbitrary file is chosen from that dir. Sometimes with the tilde, sometimes without.
I suggest that you search for more specific rockon config files. E.g. that they end with, and only with ".json".
Of course, it is my duty to make sure only one, valid JSON rockon config file is in that dir, but I thought I put up the issue up for discussion anyway.
I'm confident that this can be repro'd by placing any two .json and json~ files in the dir.
The text was updated successfully, but these errors were encountered: