Fix unnecessary/incorrect usage of six.binary_type

This commit is contained in:
Erik Johnson 2018-01-22 11:00:56 -06:00
parent 42b0d27f71
commit 6aa865cf54
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -456,10 +456,7 @@ class SaltTestingParser(optparse.OptionParser):
logging_level = logging.INFO
else:
logging_level = logging.ERROR
if salt.utils.is_windows():
os.environ['TESTS_LOG_LEVEL'] = six.binary_type(self.options.verbosity)
else:
os.environ['TESTS_LOG_LEVEL'] = six.text_type(self.options.verbosity)
os.environ['TESTS_LOG_LEVEL'] = str(self.options.verbosity) # future lint: disable=blacklisted-function
consolehandler.setLevel(logging_level)
logging.root.addHandler(consolehandler)
log.info('Runtests logging has been setup')