From 0e192e541d268a3b4c0b7ca2e40acbb35c71e266 Mon Sep 17 00:00:00 2001 From: Sergey Reshetnyak Date: Fri, 30 Aug 2013 19:23:39 +0400 Subject: [PATCH] Add highlight https urls to cluster info Change-Id: I190a948b8780ea709516b51373f704c0c0a9fd2e (cherry picked from commit fe26593a14d296992b732fd6372ee1167162fc23) --- AUTHORS | 1 + savannadashboard/clusters/tabs.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 2134be77..53611a62 100644 --- a/AUTHORS +++ b/AUTHORS @@ -3,3 +3,4 @@ Dmitry Mescheryakov Nikita Konovalov Nikolay Mahotkin Sergey Lukjanov +Sergey Reshetnyak diff --git a/savannadashboard/clusters/tabs.py b/savannadashboard/clusters/tabs.py index 8c0d4776..effe230f 100644 --- a/savannadashboard/clusters/tabs.py +++ b/savannadashboard/clusters/tabs.py @@ -48,7 +48,7 @@ class GeneralTab(tabs.Tab): for info_key, info_val in cluster.info.items(): for key, val in info_val.items(): - if str(val).startswith("http://"): + if str(val).startswith(('http://', 'https://')): cluster.info[info_key][key] = build_link(val) base_image = glance.image_get(request,