Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
sbws
Commits
7599e9d0
Commit
7599e9d0
authored
Apr 19, 2018
by
Matt Traudt
Browse files
Fix misspelled variable
parent
475eaa03
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/util/config.py
View file @
7599e9d0
...
...
@@ -241,7 +241,7 @@ def _validate_helpers(conf):
sec
=
'helpers'
section
=
conf
[
sec
]
err_tmpl
=
Template
(
'$sec/$key ($val): $e'
)
addtional_helper_sections
=
[]
add
i
tional_helper_sections
=
[]
for
key
in
section
.
keys
():
value
=
section
[
key
]
if
key
==
'reachability_test_every'
:
...
...
@@ -257,7 +257,7 @@ def _validate_helpers(conf):
continue
assert
valid
if
section
.
getboolean
(
key
):
addtional_helper_sections
.
append
(
'{}.{}'
.
format
(
sec
,
key
))
add
i
tional_helper_sections
.
append
(
'{}.{}'
.
format
(
sec
,
key
))
fps
=
{
'relay'
:
{},
}
...
...
@@ -272,7 +272,7 @@ def _validate_helpers(conf):
}
all_valid_keys
=
list
(
fps
.
keys
())
+
list
(
hosts
.
keys
())
+
\
list
(
ports
.
keys
())
+
list
(
passwords
.
keys
())
for
sec
in
addtional_helper_sections
:
for
sec
in
add
i
tional_helper_sections
:
if
sec
not
in
conf
:
errors
.
append
(
'{} is an enabled helper but is not a section in '
'the config'
.
format
(
sec
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment