diff --git a/src/sunstone/etc/sunstone-views/admin.yaml b/src/sunstone/etc/sunstone-views/admin.yaml index 649ec5733b..e89a9f97ba 100644 --- a/src/sunstone/etc/sunstone-views/admin.yaml +++ b/src/sunstone/etc/sunstone-views/admin.yaml @@ -56,6 +56,7 @@ tabs: - 6 # Memory - 7 # CPU #- 8 # Group ID + #- 9 # Hidden User Data actions: User.refresh: true User.create_dialog: true diff --git a/src/sunstone/public/js/plugins/users-tab.js b/src/sunstone/public/js/plugins/users-tab.js index 007cda15a0..818c8dd2c1 100644 --- a/src/sunstone/public/js/plugins/users-tab.js +++ b/src/sunstone/public/js/plugins/users-tab.js @@ -531,6 +531,7 @@ var users_tab = { '+tr("Memory")+'\ '+tr("CPU")+'\ '+tr("Group ID")+'\ + '+tr("Hidden User Data")+'\ \ \ \ @@ -580,6 +581,18 @@ function userElementArray(user_json){ } + // Build hidden user template + var hidden_template = ""; + for (var key in user.TEMPLATE){ + switch (key){ + // Don't copy unnecesary keys + case "SSH_PUBLIC_KEY": + case "TOKEN_PASSWORD": + break; + default: + hidden_template = hidden_template + key + "=" + user.TEMPLATE[key] + "\n"; + } + } return [ '', @@ -590,7 +603,8 @@ function userElementArray(user_json){ vms, memory, cpu, - user.GID + user.GID, + hidden_template ] };