Skip to content

Override facts and ENC parameters identified with a regular expression#113

Merged
kpaulisse merged 7 commits into
masterfrom
kpaulisse-override-facts-regexp
May 19, 2017
Merged

Override facts and ENC parameters identified with a regular expression#113
kpaulisse merged 7 commits into
masterfrom
kpaulisse-override-facts-regexp

Conversation

@kpaulisse

Copy link
Copy Markdown
Contributor

This PR is an enhancement to the fact override and ENC override features. Before you had to type the exact name of the parameter or key to override. With this change you are allowed to enter a regular expression for the key name, and all found keys matching that regular expression will be overridden.

Example:

octocatalog-diff [options] --to-fact-override "/^ec2_/=(nil)" would delete all facts that start with "ec2_". 

@kpaulisse kpaulisse mentioned this pull request May 12, 2017
@kpaulisse kpaulisse merged commit 61369b4 into master May 19, 2017
@kpaulisse kpaulisse deleted the kpaulisse-override-facts-regexp branch May 19, 2017 18:42
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.

1 participant