Skip to content

Commit 49fef79

Browse files
author
Varun Sharma
committed
Fixed the cookstyle errors
Signed-off-by: Varun Sharma <varun.sharma@progress.com>
1 parent 5faec94 commit 49fef79

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

providers/default.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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 "$_"

spec/unit/resources/default_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
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

0 commit comments

Comments
 (0)