diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-02-18 11:58:12 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-02-18 11:58:12 -0500 |
commit | 474a72c5b7492b64ff153f1abf694c079b137c4b (patch) | |
tree | 51ec9112fef1a76c987c84aaf2b28ad7f46bae14 | |
parent | 5e5c8051fb2b3bd7c39e46fb090b2df282779ea1 (diff) | |
download | vyos-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.
-rw-r--r-- | cloudinit/sources/DataSourceCloudSigma.py | 5 |
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) |