Skip to content

Commit

Permalink
Update server.rb
Browse files Browse the repository at this point in the history
fixed linting issues.
  • Loading branch information
rhealitycheck committed May 10, 2016
1 parent 39f0819 commit 79ac96b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

Chef::Application.fatal!("node['sql_server']['server_sa_password'] must be set for this cookbook to run") if node['sql_server']['server_sa_password'].nil?

# SQLEXPRESS is used as an instance name in Standard or Enterprise installs
# SQL Server it will default to MSSQLSERVER. Any instance name used will
# SQLEXPRESS is used as an instance name in Standard or Enterprise installs
# SQL Server it will default to MSSQLSERVER. Any instance name used will
# have MSSQ$ appeneded to the front
service_name = if node['sql_server']['instance_name'] == 'MSSQLSERVER'
node['sql_server']['instance_name']
Expand All @@ -31,10 +31,10 @@
# Agent name needs to be declared because if you use the SQL Agent, you need
# to restart both services as the Agent is dependent on the SQL Service
agent_service_name = if node['sql_server']['instance_name'] == 'MSSQLSERVER'
'SQLSERVERAGENT'
else
"SQLAgent$#{node['sql_server']['instance_name']}"
end
'SQLSERVERAGENT'
else
"SQLAgent$#{node['sql_server']['instance_name']}"
end

# Compute registry version based on sql server version
reg_version = node['sql_server']['reg_version'] ||
Expand Down Expand Up @@ -121,10 +121,10 @@
service service_name do
action [:start, :enable]
end
else
service service_name do
action [:start, :enable]
end
end

service service_name do
action [:start, :enable]
end

# SQL Server requires a reboot to complete your install
Expand Down

0 comments on commit 79ac96b

Please sign in to comment.