mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-06-02 16:39:46 +02:00
prepare new release
This commit is contained in:
parent
22080185db
commit
28904b94d9
|
@ -6,7 +6,7 @@ __license__ = "MIT"
|
||||||
__maintainer__ = "Robert Kaussow"
|
__maintainer__ = "Robert Kaussow"
|
||||||
__email__ = "mail@geeklabor.de"
|
__email__ = "mail@geeklabor.de"
|
||||||
__url__ = "https://github.com/xoxys/ansible-later"
|
__url__ = "https://github.com/xoxys/ansible-later"
|
||||||
__version__ = "0.3.1"
|
__version__ = "0.3.2"
|
||||||
|
|
||||||
from ansiblelater import logger
|
from ansiblelater import logger
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import colorama
|
||||||
from pythonjsonlogger import jsonlogger
|
from pythonjsonlogger import jsonlogger
|
||||||
from six import iteritems
|
from six import iteritems
|
||||||
|
|
||||||
CONSOLE_FORMAT = "%(levelname)s: {}%(message)s"
|
CONSOLE_FORMAT = "{}%(levelname)s:{} %(message)s"
|
||||||
JSON_FORMAT = "(asctime) (levelname) (message)"
|
JSON_FORMAT = "(asctime) (levelname) (message)"
|
||||||
|
|
||||||
|
|
||||||
|
@ -185,5 +185,5 @@ def color_text(color, msg):
|
||||||
:returns: string
|
:returns: string
|
||||||
|
|
||||||
"""
|
"""
|
||||||
msg = msg.format(colorama.Style.DIM)
|
msg = msg.format(colorama.Style.BRIGHT, colorama.Style.NORMAL)
|
||||||
return "{}{}{}".format(color, msg, colorama.Style.RESET_ALL)
|
return "{}{}{}".format(color, msg, colorama.Style.RESET_ALL)
|
||||||
|
|
|
@ -22,8 +22,9 @@ def test_critical(capsys, mocker):
|
||||||
_, stderr = capsys.readouterr()
|
_, stderr = capsys.readouterr()
|
||||||
|
|
||||||
print(
|
print(
|
||||||
"{}CRITICAL: {}foo\n{}".format(
|
"{}{}CRITICAL:{} foo\n{}".format(
|
||||||
colorama.Fore.RED, colorama.Style.DIM, colorama.Style.RESET_ALL
|
colorama.Fore.RED, colorama.Style.BRIGHT, colorama.Style.NORMAL,
|
||||||
|
colorama.Style.RESET_ALL
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
x, _ = capsys.readouterr()
|
x, _ = capsys.readouterr()
|
||||||
|
@ -37,8 +38,9 @@ def test_error(capsys, mocker):
|
||||||
_, stderr = capsys.readouterr()
|
_, stderr = capsys.readouterr()
|
||||||
|
|
||||||
print(
|
print(
|
||||||
"{}ERROR: {}foo\n{}".format(
|
"{}{}ERROR:{} foo\n{}".format(
|
||||||
colorama.Fore.RED, colorama.Style.DIM, colorama.Style.RESET_ALL
|
colorama.Fore.RED, colorama.Style.BRIGHT, colorama.Style.NORMAL,
|
||||||
|
colorama.Style.RESET_ALL
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
x, _ = capsys.readouterr()
|
x, _ = capsys.readouterr()
|
||||||
|
@ -52,8 +54,9 @@ def test_warn(capsys, mocker):
|
||||||
stdout, _ = capsys.readouterr()
|
stdout, _ = capsys.readouterr()
|
||||||
|
|
||||||
print(
|
print(
|
||||||
"{}WARNING: {}foo\n{}".format(
|
"{}{}WARNING:{} foo\n{}".format(
|
||||||
colorama.Fore.YELLOW, colorama.Style.DIM, colorama.Style.RESET_ALL
|
colorama.Fore.YELLOW, colorama.Style.BRIGHT, colorama.Style.NORMAL,
|
||||||
|
colorama.Style.RESET_ALL
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
x, _ = capsys.readouterr()
|
x, _ = capsys.readouterr()
|
||||||
|
@ -67,8 +70,9 @@ def test_info(capsys, mocker):
|
||||||
stdout, _ = capsys.readouterr()
|
stdout, _ = capsys.readouterr()
|
||||||
|
|
||||||
print(
|
print(
|
||||||
"{}INFO: {}foo\n{}".format(
|
"{}{}INFO:{} foo\n{}".format(
|
||||||
colorama.Fore.BLUE, colorama.Style.DIM, colorama.Style.RESET_ALL
|
colorama.Fore.BLUE, colorama.Style.BRIGHT, colorama.Style.NORMAL,
|
||||||
|
colorama.Style.RESET_ALL
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
x, _ = capsys.readouterr()
|
x, _ = capsys.readouterr()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user