diff options
Diffstat (limited to 'lib/chef/provider/package/dnf/python_helper.rb')
-rw-r--r-- | lib/chef/provider/package/dnf/python_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/provider/package/dnf/python_helper.rb b/lib/chef/provider/package/dnf/python_helper.rb index 56706764d0..7cb4047f53 100644 --- a/lib/chef/provider/package/dnf/python_helper.rb +++ b/lib/chef/provider/package/dnf/python_helper.rb @@ -132,9 +132,7 @@ class Chef def drain_stderr output = "" - until IO.select([stderr], nil, nil, 0).nil? - output += stderr.sysread(4096).chomp - end + output += stderr.sysread(4096).chomp until IO.select([stderr], nil, nil, 0).nil? output rescue # we must rescue EOFError, and we don't much care about errors on stderr anyway |