Skip to content

Commit

Permalink
ignore nonsense
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Dec 15, 2022
1 parent 874c8e3 commit 71ff153
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,20 +492,17 @@ def _try_json_readsha(filepath: str, length: int) -> Optional[str]:
# FIREWALL (only port 22 is open)

# ----------------------------------------------------------------------
class SSHManager:
def mutator(self, ssh_tunnel_params: Dict[str, Any]) -> Dict[str, Any]:
class SSHManager: # pylint: disable=too-few-public-methods
local_bind_address = "127.0.0.1"

def mutator( # pylint: disable=no-self-use
self, ssh_tunnel_params: Dict[str, Any]
) -> Dict[str, Any]:
# override any ssh tunnel configuration object
return ssh_tunnel_params

@property
def local_bind_address(self):
# set the local binding address for the local client
# the port will be dynamically configured by the sshtunnel.SSHTunnelForwarder
# `server` return value
return "127.0.0.1"


SSH_TUNNEL_MANAGER = SSHManager
SSH_TUNNEL_MANAGER = SSHManager # pylint: disable=invalid-name

# Feature flags may also be set via 'SUPERSET_FEATURE_' prefixed environment vars.
DEFAULT_FEATURE_FLAGS.update(
Expand Down Expand Up @@ -1496,7 +1493,7 @@ def EMAIL_HEADER_MUTATOR( # pylint: disable=invalid-name,unused-argument
try:
# pylint: disable=import-error,wildcard-import,unused-wildcard-import
import superset_config
from superset_config import * # type:ignore
from superset_config import * # type: ignore

print(f"Loaded your LOCAL configuration at [{superset_config.__file__}]")
except Exception:
Expand Down

0 comments on commit 71ff153

Please sign in to comment.