summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceCloudSigma.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-02-18 11:58:12 -0500
committerScott Moser <smoser@ubuntu.com>2014-02-18 11:58:12 -0500
commit474a72c5b7492b64ff153f1abf694c079b137c4b (patch)
tree51ec9112fef1a76c987c84aaf2b28ad7f46bae14 /cloudinit/sources/DataSourceCloudSigma.py
parent5e5c8051fb2b3bd7c39e46fb090b2df282779ea1 (diff)
downloadvyos-cloud-init-474a72c5b7492b64ff153f1abf694c079b137c4b.tar.gz
vyos-cloud-init-474a72c5b7492b64ff153f1abf694c079b137c4b.zip
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.
Diffstat (limited to 'cloudinit/sources/DataSourceCloudSigma.py')
-rw-r--r--cloudinit/sources/DataSourceCloudSigma.py5
1 files 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)