Skip to content
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

func (a Augeas) Set(path, value string) setting empty Value failure #11

Open
baoailian opened this issue Dec 8, 2016 · 0 comments
Open

Comments

@baoailian
Copy link

baoailian commented Dec 8, 2016

If the value is empty or null, go-augeas doesn't works.

But if I used augtool command, I can setting an empty value
such as

augtool> ls /files/etc/php.ini/Tidy/tidy.clean_output
augtool> print /files/etc/php.ini/Tidy/tidy.clean_output
/files/etc/php.ini/Tidy/tidy.clean_output = "Off"
augtool> set /files/etc/php.ini/Tidy/tidy.clean_output
augtool> save
Saved 1 file(s)
augtool> print /files/etc/php.ini/Tidy/tidy.clean_output
/files/etc/php.ini/Tidy/tidy.clean_output

setting an empty value for tidy.clean_output

But if I used Set(path, value string) this method , it doesn't works

How can I setting an empty value with this method ?

func (a Augeas) Set(path, value string) error {
    …
}

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant