Skip to content
Snippets Groups Projects
Commit 8bad4070 authored by Erik Johnston's avatar Erik Johnston
Browse files

Comment.

parent 250e1430
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,9 @@ class RegistrationConfig(Config): ...@@ -25,6 +25,9 @@ class RegistrationConfig(Config):
def __init__(self, args): def __init__(self, args):
super(RegistrationConfig, self).__init__(args) super(RegistrationConfig, self).__init__(args)
# `args.disable_registration` may either be a bool or a string depending
# on if the option was given a value (e.g. --disable-registration=false
# would set `args.disable_registration` to "false" not False.)
self.disable_registration = bool( self.disable_registration = bool(
distutils.util.strtobool(str(args.disable_registration)) distutils.util.strtobool(str(args.disable_registration))
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment