Remove dependency from crayons library.

Fix pylint error when using crayons in run.py
  http://logs.openstack.org/71/639071/3/check/openstack-tox-pylint/7447118/job-output.txt.gz#_2019-02-25_11_49_06_494351

Planify coloring STDERR messages by implementing a colored logging
formatter to be registered with oslo_log library.
  https://trello.com/c/T148yfyN/61-add-colored-formatter-to-logging-library-for-stderr-stream

Change-Id: I9b0d49c4b2946a297ccfb9a9240f191bd69d65bf
This commit is contained in:
Federico Ressi 2019-02-26 11:41:18 +01:00
parent 219dd177f4
commit 7d7f7cc2a2
2 changed files with 1 additions and 4 deletions

View File

@ -3,5 +3,4 @@
ansible>=2.4.0 # GPLv3
os-faults>=0.1.18 # Apache-2.0
tempest>=17.1.0 # Apache-2.0
crayons>=0.1.2
cryptography<=2.2.2

View File

@ -16,7 +16,6 @@ from __future__ import absolute_import
import argparse
import sys
import crayons
import paramiko
from oslo_log import log
@ -47,8 +46,7 @@ class Tobiko():
try:
self.ssh.connect(self.args.host)
except paramiko.ssh_exception.AuthenticationException:
LOG.error("Unable to connect {}".format(
crayons.red(self.args.host)))
LOG.error("Unable to connect %r", self.args.host)
def main():