Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Commit

Permalink
Fix Foodcritic warning #39
Browse files Browse the repository at this point in the history
  • Loading branch information
sunggun-yu committed Aug 5, 2016
1 parent 654fe66 commit 8925432
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,12 @@

# Create the mongod.service file
case node['platform']
when 'ubuntu'
if node['platform_version'].to_f >= 15.04
when 'ubuntu'
template '/lib/systemd/system/mongod.service' do
source 'mongod.service.erb'
mode 0644
only_if { node['platform_version'].to_f >= 15.04 }
end
end
end

# Start the mongod service
Expand Down

0 comments on commit 8925432

Please sign in to comment.