Skip to content

Commit 0c1c417

Browse files
committed
fix mistake in merge conflict resolution
1 parent 8aa3f4c commit 0c1c417

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

chef-server-api/lib/chef-server-api.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,6 @@ def self.activate
7171
Chef::Log.info('Loading roles')
7272
Chef::Role.sync_from_disk_to_couchdb
7373

74-
# Create the default WebUI admin user "admin" if not already exists
75-
begin
76-
user = Chef::WebUIUser.load(Chef::Config[:web_ui_admin_user_name])
77-
rescue Chef::Exceptions::CouchDBNotFound => e
78-
user = Chef::WebUIUser.new
79-
user.name = Chef::Config[:web_ui_admin_user_name]
80-
user.set_password(Chef::Config[:web_ui_admin_default_password])
81-
user.admin = true
82-
user.save
83-
end
84-
8574
# Create the signing key and certificate
8675
Chef::Certificate.generate_signing_ca
8776

0 commit comments

Comments
 (0)