diff options
| author | David Lutterkort <lutter@redhat.com> | 2009-05-30 22:54:27 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-06-03 23:34:52 +1000 |
| commit | cea7bb555caf305add4864c15b5c88e72db10eb5 (patch) | |
| tree | 8f65fa763041ccb629ef158cd74c6f2883a3ea0b | |
| parent | 95bd82610b2fb57d45db2535758cda5bbb297152 (diff) | |
| download | puppet-cea7bb555caf305add4864c15b5c88e72db10eb5.tar.gz puppet-cea7bb555caf305add4864c15b5c88e72db10eb5.tar.xz puppet-cea7bb555caf305add4864c15b5c88e72db10eb5.zip | |
* provider/augeas (parse_commands): use split to split string into lines
| -rw-r--r-- | lib/puppet/provider/augeas/augeas.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/provider/augeas/augeas.rb b/lib/puppet/provider/augeas/augeas.rb index ea70d8add..7e430cb81 100644 --- a/lib/puppet/provider/augeas/augeas.rb +++ b/lib/puppet/provider/augeas/augeas.rb @@ -62,9 +62,7 @@ Puppet::Type.type(:augeas).provide(:augeas) do end if data.is_a?(String) - s = data - data = [] - s.each_line { |line| data << line } + data = data.split($/) end args = [] data.each do |line| |
