diff options
author | Morgan Haskel <morgan@puppetlabs.com> | 2014-12-16 15:07:02 -0800 |
---|---|---|
committer | Morgan Haskel <morgan@puppetlabs.com> | 2014-12-16 15:07:02 -0800 |
commit | 80f09623b63cf6946b5913b629911e2c49b5d1dd (patch) | |
tree | 17c110fe8ec52b636a91a65acb4c13889295f62f /lib/puppet | |
parent | 0e84232503d72cec0950f9e7fab11bc93cce116d (diff) | |
parent | c6c203fca8da81fea96659bfe9618bb31965b837 (diff) |
Merge pull request #387 from hunner/remove_match_line
Remove line match validation
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/type/file_line.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/puppet/type/file_line.rb b/lib/puppet/type/file_line.rb index 9dbe43c..df263e6 100644 --- a/lib/puppet/type/file_line.rb +++ b/lib/puppet/type/file_line.rb @@ -71,12 +71,5 @@ Puppet::Type.newtype(:file_line) do unless self[:line] and self[:path] raise(Puppet::Error, "Both line and path are required attributes") end - - if (self[:match]) - unless Regexp.new(self[:match]).match(self[:line]) - raise(Puppet::Error, "When providing a 'match' parameter, the value must be a regex that matches against the value of your 'line' parameter") - end - end - end end |