Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/facter/metered_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
'patching_as_code',
'metered_link.ps1',
)
Facter::Util::Resolution.exec("#{powershell} -ExecutionPolicy Unrestricted -File #{checker_script}").to_s == 'true'
Facter::Util::Resolution.exec("#{powershell} -ExecutionPolicy Bypass -NoProfile -NoLogo -NonInteractive -File #{checker_script}").to_s == 'true'
end
end
2 changes: 1 addition & 1 deletion lib/puppet/type/reboot_if_pending.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def pre_run_check
'patching_as_code',
'pending_reboot.ps1',
)
pending_reboot = Puppet::Util::Execution.execute("#{powershell} -ExecutionPolicy Unrestricted -File #{checker_script}", { failonfail: false }).exitstatus.to_i.zero?
pending_reboot = Puppet::Util::Execution.execute("#{powershell} -ExecutionPolicy Bypass -NoProfile -NoLogo -NonInteractive -File #{checker_script}", { failonfail: false }).exitstatus.to_i.zero?
when 'linux'
# get the script path relative to the Puppet Type
checker_script = File.join(
Expand Down