cockpit: Add short description to frontpage shortcut

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2017-11-08 13:37:51 +05:30
parent fe23a82b0f
commit ad07e717ae
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -14,7 +14,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
""" """
Plinth module to configure Cockpit. Plinth module to configure Cockpit.
""" """
@ -102,7 +101,9 @@ def setup(helper, old_version=None):
def add_shortcut(): def add_shortcut():
"""Add a shortcut the frontpage.""" """Add a shortcut the frontpage."""
frontpage.add_shortcut('cockpit', name, url='/_cockpit/', frontpage.add_shortcut('cockpit', name,
short_description=short_description,
url='/_cockpit/',
login_required=True) login_required=True)
@ -128,8 +129,9 @@ def diagnose():
"""Run diagnostics and return the results.""" """Run diagnostics and return the results."""
results = [] results = []
results.extend(action_utils.diagnose_url_on_all( results.extend(
'https://{host}/_cockpit/', check_certificate=False)) action_utils.diagnose_url_on_all('https://{host}/_cockpit/',
check_certificate=False))
return results return results