Skip to content

Commit

Permalink
Removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
canihavethisone committed Apr 20, 2024
1 parent 30ea747 commit 6697e07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ gem "mocha"
gem "parallel"
gem "parallel_tests", '>= 4.5.1', group: [:development, :test]
#gem "parallel_rspec"
gem "in-parallel"
gem "pry"
gem "puppet", "< 8.0.0"
gem "puppet-blacksmith"
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
"pdk-version": "3.0.1",
"template-url": "pdk-default#3.0.0",
"template-ref": "tags/3.0.0-0-g5bfc1c0"
}
}
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def setup_puppet_on(_host, opts = {})
## Disable and force kill Windows Update service if running
on(agent, powershell('Set-Service wuauserv -StartupType Disabled'))
on(agent, powershell("taskkill /f /t /fi 'SERVICES eq wuauserv'"), acceptable_exit_codes: [0, 1])
on(agent, powershell('Stop-Service wuauserv -Force'))
on(agent, powershell('Stop-Service wuauserv -Force'), acceptable_exit_codes: [0, 1])
## Check if puppet-agent is installed, otherwise install it
result = on(agent, powershell('if((gp HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*).DisplayName -Match \'Puppet Agent\') {exit 0} else {exit 1}'))
if result.exit_code == 1
Expand Down

0 comments on commit 6697e07

Please sign in to comment.