-
Notifications
You must be signed in to change notification settings - Fork 34
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
grub_config values with spaces cause augeas errors #44
Comments
@tparkercbn Can you please test this directly with |
Interesting (and unexpected). If you add single quotes inside your double quotes around the |
Sorry. I deleted the prevous comment as I realized that it was still in an error state so the quotes change were not actually helping. I added a set of " " to my value and that works. My working config is this:
|
augtool> get etc/default/grub/GRUB_TERMINAL |
OK, should be easy enough to fix. |
Everything looks OK in your |
yes. The values are double quoted as expected: Notice: /Stage[main]/Boot::Grub2/Grub_config[GRUB_TERMINAL]/value: value changed '"console serial foo"' to '"console serial"' cat /etc/default/grub |
Rolling this and #45 into the same patch. Should have a PR later tonight. |
if you have a branch I can clone I can give it a test. |
* Ensure that Boolean values are converted to Strings * Ensure the String values have quotes around them if not already present Fixes voxpupuli#44, voxpupuli#45
I'm getting very odd behaviour now. The boolean value is being "corrected" on every run but makes no changes to /etc/default/grub Notice: /Stage[main]/Boot::Grub2/Grub_config[GRUB_DISABLE_OS_PROBER]/value: value changed '"true"' to 'true' (corrective)
|
|
I think I've isolated it in the acceptance tests. Will get those working and prod again when I can. |
Sounds good! I have a working config with the " workaround for now. Let me know if I can help with more testing. I have an r10k environment setup to pull from your branch. |
@tparkercbn Try again whenever you get a chance |
Good morning. I have been completely unable to get this to break no matter what I throw at it. Thank you very much for the fixes, it's working perfectly. |
* Ensure that Boolean values are converted to Strings * Ensure the String values have quotes around them if not already present Fixes voxpupuli#44, voxpupuli#45
grub_config values with spaces cause augeus errors:
Notice: /Stage[main]/Boot::Grub2/Grub_config[GRUB_TERMINAL]/value: value changed '"console serial"' to 'console serial'
Error: /Stage[main]/Boot::Grub2/Grub_config[GRUB_TERMINAL]: Could not evaluate: Failed to save Augeas tree to file. See debug logs for details.
Notice: /Stage[main]/Boot::Grub2/Grub_config[GRUB_SERIAL_COMMAND]/value: value changed '"serial --unit=0 --speed=115200"' to 'serial --unit=0 --speed=115200'
Error: /Stage[main]/Boot::Grub2/Grub_config[GRUB_SERIAL_COMMAND]: Could not evaluate: Failed to save Augeas tree to file. See debug logs for details.
The text was updated successfully, but these errors were encountered: