disney / couchbase

Chef cookbook to install and configure Couchbase Server
24 stars 59 forks source link

Chef logs out user logged into UI with every chef run. #49

Closed unhuman closed 9 years ago

unhuman commented 9 years ago

Looks like, in server.rb, re-running: couchbase_settings "web" Does something that logs users out, even though everything is being re-set to the same thing.

FIX: libraries/settings_provider.rb: CHANGE: @new_resource.settings.all? { |key, value| @current_resource.settings[key.to_s] == value } TO: @current_resource.settings.all? { |key, value| @new_resource.settings[key.to_s] == value } Works because current_resource will not contain the password (it's not returned), but if everything else matches, we're good...