Skip to content

Commit

Permalink
Don't merge stderr into stdout for GPG output
Browse files Browse the repository at this point in the history
This change makes it so that STDERR isn't merged into STDOUT when
retrieving values from GPG, so warnings no longer get added to stdout.

Fixes: #68
  • Loading branch information
KeithWard authored and alexjfisher committed Aug 21, 2019
1 parent e85e62f commit 2681e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hiera/backend/eyaml/encryptors/gpg/puppet_gpg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.run_command(command, input = nil)

real_command = "#{command} #{tmpfile.path}"

output = Puppet::Util::Execution.execute(real_command)
output = Puppet::Util::Execution.execute(real_command, combine: false, failonfail: true)
tmpfile.unlink

if output.exitstatus != 0
Expand Down

0 comments on commit 2681e99

Please sign in to comment.