summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Johnson <charles@opscode.com>2014-10-04 14:26:06 -0700
committerCharles Johnson <charles@opscode.com>2014-10-04 14:26:06 -0700
commit4d526ab1de921e15653af510b69c35abbbfc5a1b (patch)
treeec2815c9883a1ea555236d6165577ab5ffcca223
parent2fa97c49f25e16c88373e2d084d8bacd46679bd9 (diff)
downloadchef-4d526ab1de921e15653af510b69c35abbbfc5a1b.tar.gz
Add display_name handling to Chef::ChefFS::DataHandler::UserDataHandler
Add support for user full name as display_name to Chef::ChefFS::DataHandler::UserDataHandler
-rw-r--r--lib/chef/chef_fs/data_handler/user_data_handler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/chef_fs/data_handler/user_data_handler.rb b/lib/chef/chef_fs/data_handler/user_data_handler.rb
index 2b50ce38d8..f6859faccd 100644
--- a/lib/chef/chef_fs/data_handler/user_data_handler.rb
+++ b/lib/chef/chef_fs/data_handler/user_data_handler.rb
@@ -8,6 +8,7 @@ class Chef
normalize_hash(user, {
'name' => remove_dot_json(entry.name),
'username' => remove_dot_json(entry.name),
+ 'display_name' => remove_dot_json(entry.name),
'admin' => false,
'json_class' => 'Chef::WebUIUser',
'chef_type' => 'webui_user',