lib/beaker-puppet/helpers/puppet_helpers.rb in beaker-puppet-1.28.0 vs lib/beaker-puppet/helpers/puppet_helpers.rb in beaker-puppet-1.29.0
- old
+ new
@@ -457,10 +457,10 @@
block_on host, opts do | host |
on_options = {}
on_options[:acceptable_exit_codes] = Array(opts[:acceptable_exit_codes])
puppet_apply_opts = {}
- if opts[:debug]
+ if opts[:debug] || ENV['BEAKER_PUPPET_DEBUG']
puppet_apply_opts[:debug] = nil
else
puppet_apply_opts[:verbose] = nil
end
puppet_apply_opts[:parseonly] = nil if opts[:parseonly]