From 474a72c5b7492b64ff153f1abf694c079b137c4b Mon Sep 17 00:00:00 2001
From: Scott Moser <smoser@ubuntu.com>
Date: Tue, 18 Feb 2014 11:58:12 -0500
Subject: CloudSigma: remove 'WARN' in not found case

The CloudSigma datasource would attempt to read /dev/ttyS1
and if not found would warn (which gets logged to stdout by default).
Better to just debug.
---
 cloudinit/sources/DataSourceCloudSigma.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cloudinit/sources/DataSourceCloudSigma.py b/cloudinit/sources/DataSourceCloudSigma.py
index e734d7e5..dad37119 100644
--- a/cloudinit/sources/DataSourceCloudSigma.py
+++ b/cloudinit/sources/DataSourceCloudSigma.py
@@ -19,7 +19,6 @@ import re
 
 from cloudinit import log as logging
 from cloudinit import sources
-from cloudinit import util
 from cloudinit.cs_utils import Cepko
 
 LOG = logging.getLogger(__name__)
@@ -50,7 +49,9 @@ class DataSourceCloudSigma(sources.DataSource):
             server_context = self.cepko.all().result
             server_meta = server_context['meta']
         except:
-            util.logexc(LOG, "Failed reading from the serial port")
+            # TODO: check for explicit "config on", and then warn
+            # but since no explicit config is available now, just debug.
+            LOG.debug("CloudSigma: Unable to read from serial port")
             return False
 
         dsmode = server_meta.get('cloudinit-dsmode', self.dsmode)
-- 
cgit v1.2.3