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

User story #17195: Execute augeas commands directly on the agent #1178

Closed
wants to merge 3 commits into from
Closed

User story #17195: Execute augeas commands directly on the agent #1178

wants to merge 3 commits into from

Conversation

ikramBej
Copy link
Contributor

"args" slist => {"${variable_prefix}", "${variable_name}", "${commands}", "${noautoload}"};

pass1.noautoload_defined::
"${variable_prefix}.${variable_name}" string => execresult("/usr/bin/env printf \"${commands}\" | augtool --noautoload","useshell");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you use augtool from the $PATH, but you check it with full path


pass2::
"variable_defined" expression => isvariable("${variable_prefix}.${variable_name}");
"augeas_binaries" expression => fileexists("/usr/bin/augtool");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incoherent and may lead to subtle bugs

@ikramBej ikramBej closed this Apr 23, 2020
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants