Skip to content

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

Open

Description

@baoailian

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions