Skip to content

Commit

Permalink
add conditional logic for unspecified runit_service instance name
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith committed Jun 21, 2015
1 parent f0fc6f1 commit 742e271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion definitions/memcached_instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
include_recipe 'runit'
include_recipe 'memcached::package'

instance_name = params[:name] == 'memcached' ? 'memcached' : "memcached-#{params[:name]}"
instance_name = params[:name] == 'memcached' || params[:name] == nil ? 'memcached' : "memcached-#{params[:name]}"

opts = params

Expand Down

0 comments on commit 742e271

Please sign in to comment.