From 21f27311265fc43710f1c9793dd31fd38e9a64f6 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 19 Oct 2016 16:02:09 +0100 Subject: [PATCH] bifrost: inventory: Downgrade log level to 'debug' for csv parsing Falling back to csv parsing is an intended behavior so downgrade the log level to 'debug'. This also prevents the inventory script to print the fallback message to stderr which can cause ansible-playbook to fail to parse the rest of the output. Change-Id: Ie79b70c9560ca627bc681948c9db3323ae9f447e --- bifrost/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bifrost/inventory.py b/bifrost/inventory.py index 9a39acd41..b1c7b9040 100755 --- a/bifrost/inventory.py +++ b/bifrost/inventory.py @@ -378,7 +378,7 @@ def main(): groups, hostvars) except Exception as e: - LOG.error("File does not appear to be JSON or YAML - %s" % e) + LOG.debug("File does not appear to be JSON or YAML - %s" % e) try: (groups, hostvars) = _process_baremetal_csv( data_source,