Skip to content

Commit 6db14b1

Browse files
authored
force data read from 'sysctl -a' into ASCSII, gets around https://bugzilla.redhat.com/show_bug.cgi?id=1879868 (#46)
1 parent e58fc8e commit 6db14b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/puppet/provider/sysctl/augeas.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def self.instances(reference_resource = nil)
8383
end
8484

8585
sysctl('-a').each_line do |line|
86+
line = line.force_encoding("US-ASCII").scrub("")
8687
value = line.split(sep)
8788

8889
key = value.shift.strip

0 commit comments

Comments
 (0)