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

Fixes #5058: add method to ensure lhs=rhs in files #63

Conversation

ncharles
Copy link
Member

No description provided.

create => "false",
edit_line => maintain_key_values("${array}", "${separator}"),
edit_defaults => no_backup,
classes => classes_generic("${class_prefix}");
Copy link
Member

Choose a reason for hiding this comment

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

This identation is broken

@jooooooon
Copy link
Member

I think the naming could be improved here.

array" is really a terrible variable name, can we go with "keys" instead?

Can we rename the whole bundle "file_ensure_keys_values"?

@ncharles
Copy link
Member Author

PR has been updated

#
# @parameter file File name to edit
# @parameter keys Array with where keys are LHS and values are RHS
# @parameter separator Separator between LHS and RHS
Copy link
Member

Choose a reason for hiding this comment

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

Please update the description and parameter docs to use "key" instead of LHS and "value" instead of RHS.

Also the doc for the "keys" parameters doesn't make sense ("with where"...)

@ncharles
Copy link
Member Author

PR has been updated

#
#####################################################################################

# @name File ensure lines with key->values
Copy link
Member

Choose a reason for hiding this comment

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

Oops, you didn't update the name after changing the bundle name!

Please use "File ensure keys->values present"

@ncharles ncharles force-pushed the bug_5058/dev/add_bundle_for_file_edition_lhs_rhs branch from ac60e63 to 54e1c30 Compare December 9, 2014 04:26
@ncharles
Copy link
Member Author

ncharles commented Dec 9, 2014

PR has been updated

@peckpeck
Copy link
Member

OK, merging

peckpeck added a commit that referenced this pull request Feb 27, 2015
…_edition_lhs_rhs

Fixes #5058: add method to ensure lhs=rhs in files
@peckpeck peckpeck merged commit 5ca0474 into Normation:master Feb 27, 2015
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.

3 participants