File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -504,7 +504,6 @@ def event_log_ps_code
504504 # Get Dependent Services for Eventlog that are running
505505 $depsvcsrunning = Get-Service -Name 'EventLog' | Select-Object -ExpandProperty DependentServices |
506506 Where-Object Status -eq 'Running' | Select-Object -ExpandProperty Name
507-
508507 # Attempt to preemptively stop Dependent Services
509508 $depsvcsrunning | ForEach-Object {
510509 $depsvc = $_
@@ -519,7 +518,6 @@ def event_log_ps_code
519518 Start-Sleep -Seconds 3
520519 }
521520 }
522-
523521 # Stop EventLog Service - First Politely, then Forcibly
524522 try {
525523 Stop-Service -Name 'EventLog' -Force -ErrorAction Stop
@@ -531,13 +529,11 @@ def event_log_ps_code
531529 Stop-Process -Id $data -Force
532530 Start-Sleep -Seconds 10
533531 }
534-
535532 # Restart EventLog Service, if Not AutoStarted
536533 $evtlogstate = Get-Service -Name 'EventLog'
537534 if ($evtlogstate.Status -eq 'Stopped') {
538535 Start-Service -Name 'EventLog'
539536 }
540-
541537 # Restart Dependent Services - if Stopped
542538 $depsvcsrunning | ForEach-Object {
543539 $svcstate = Get-Service -Name "$_"
Original file line number Diff line number Diff line change 3737 context 'when license_id is provided' do
3838 before do
3939 allow_any_instance_of ( Object ) . to receive ( :update_necessary? ) . and_return ( false )
40- chef_run . node . normal [ 'chef_client_updater' ] [ 'license_id' ] = 'test-license-123'
40+ chef_run . node . default [ 'chef_client_updater' ] [ 'license_id' ] = 'test-license-123'
4141 end
4242
4343 it 'does not log a warning about missing license_id' do
You can’t perform that action at this time.
0 commit comments