Skip to content

Commit

Permalink
Fix spelling (apache#14472)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Feb 26, 2021
1 parent 0aa597e commit 8c5e618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions airflow/www/extensions/init_jinja_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def init_jinja_globals(app):
default_ui_timezone = server_timezone

expose_hostname = conf.getboolean('webserver', 'EXPOSE_HOSTNAME', fallback=True)
hosstname = socket.getfqdn() if expose_hostname else 'redact'
hostname = socket.getfqdn() if expose_hostname else 'redact'

try:
airflow_version = airflow.__version__
Expand All @@ -57,7 +57,7 @@ def prepare_jinja_globals():
extra_globals = {
'server_timezone': server_timezone,
'default_ui_timezone': default_ui_timezone,
'hostname': hosstname,
'hostname': hostname,
'navbar_color': conf.get('webserver', 'NAVBAR_COLOR'),
'log_fetch_delay_sec': conf.getint('webserver', 'log_fetch_delay_sec', fallback=2),
'log_auto_tailing_offset': conf.getint('webserver', 'log_auto_tailing_offset', fallback=30),
Expand Down
2 changes: 1 addition & 1 deletion airflow/www/extensions/init_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

log = logging.getLogger(__name__)

# airflow/www/extesions/init_views.py => airflow/
# airflow/www/extensions/init_views.py => airflow/
ROOT_APP_DIR = path.abspath(path.join(path.dirname(__file__), path.pardir, path.pardir))


Expand Down

0 comments on commit 8c5e618

Please sign in to comment.