diff --git a/superset/connectors/druid/models.py b/superset/connectors/druid/models.py index 3cece6ec3436a..85afc852b21f4 100644 --- a/superset/connectors/druid/models.py +++ b/superset/connectors/druid/models.py @@ -116,7 +116,9 @@ def data(self): def get_base_url(host, port): if not re.match('http(s)?://', host): host = 'http://' + host - return '{0}:{1}'.format(host, port) + + url = '{0}:{1}'.format(host, port) if port else host + return url def get_base_coordinator_url(self): base_url = self.get_base_url(