Skip to content

Commit 81fe89a

Browse files
committed
Fix some whitespace in NetBox configuration template
1 parent 21445e7 commit 81fe89a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

templates/configuration.py.j2

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ DATABASE = {
2222
'HOST': '{{ netbox_database_host }}',
2323
'PORT': '{{ netbox_database_port }}',
2424
{% else %}
25-
{% if netbox_database_password is defined %}
25+
{% if netbox_database_password is defined %}
2626
'PASSWORD': '{{ netbox_database_password }}',
27-
{% endif %}
27+
{% endif %}
2828
'HOST': '{{ netbox_database_socket }}',
2929
{% endif %}
3030
'CONN_MAX_AGE': {{ netbox_database_conn_age }},
@@ -67,13 +67,13 @@ METRICS_ENABLED = True
6767
{% endif %}
6868

6969
{% for setting, value in _netbox_config.items() %}
70-
{% if value in [True, False] %}
70+
{% if value in [True, False] %}
7171
{{ setting }} = {{ 'True' if value else 'False' }}
72-
{% elif value is string or value is number %}
72+
{% elif value is string or value is number %}
7373
{{ setting }} = {{ value | to_nice_json }}
74-
{% else %}
74+
{% else %}
7575
{{ setting }} = json.loads(r'''{{ value | to_json }}''')
76-
{% endif %}
76+
{% endif %}
7777
{% endfor %}
7878

7979
# vim: ft=python

0 commit comments

Comments
 (0)