diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-04-22 14:21:44 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-04-22 14:21:44 -0700 |
commit | 1bdb213778ac850631f323a46bf6e99d047034f5 (patch) | |
tree | 158f31acabe32a690c7261f99b17b89a21b5257b /lib | |
parent | 6a5dee25a6005280ef86a523192acf9b4d02e7ce (diff) | |
parent | 68acb59bf77d8d818489b1e2a97491cb7f327a0a (diff) |
Merge pull request #242 from apenney/facts_d
Adjust the regular expression for facts.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/facter/facter_dot_d.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/facter_dot_d.rb b/lib/facter/facter_dot_d.rb index e414b20..2c096b0 100644 --- a/lib/facter/facter_dot_d.rb +++ b/lib/facter/facter_dot_d.rb @@ -40,7 +40,7 @@ class Facter::Util::DotD def txt_parser(file) File.readlines(file).each do |line| - if line =~ /^(.+)=(.+)$/ + if line =~ /^([^=]+)=(.+)$/ var = $1; val = $2 Facter.add(var) do |