Fix quiet/verbose config problem

This commit is contained in:
Shinya Kawaguchi 2017-07-22 16:21:32 +09:00 committed by Ian Stapleton Cordasco
parent 98b9946a78
commit 55e85b4b50
No known key found for this signature in database
GPG key ID: C9D7A2604B4FCB2A

View file

@ -183,7 +183,8 @@ class MergedConfigParser(object):
# Use the appropriate method to parse the config value
method = config_parser.get
if option.type in self.GETINT_TYPES:
if (option.type in self.GETINT_TYPES or
option.action in self.GETINT_TYPES):
method = config_parser.getint
elif option.action in self.GETBOOL_ACTIONS:
method = config_parser.getboolean