diff options
author | Igor Galić <me+github@igalic.co> | 2019-11-27 22:32:19 +0100 |
---|---|---|
committer | Daniel Watkins <oddbloke@ubuntu.com> | 2019-11-27 16:32:19 -0500 |
commit | 10885c57a7e6539f12966d1fcc89dcf528c926ae (patch) | |
tree | 5697f9d7a0082fdc96641df2072113f74807bb4a | |
parent | aa3e4961ceae5a5c5b5cf13221b5f6721991fe75 (diff) | |
download | vyos-cloud-init-10885c57a7e6539f12966d1fcc89dcf528c926ae.tar.gz vyos-cloud-init-10885c57a7e6539f12966d1fcc89dcf528c926ae.zip |
dmidecode: log result *after* stripping \n
This makes for a slightly prettier and less confusing log.
-rw-r--r-- | cloudinit/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index c498414d..78b6a2d0 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -2691,8 +2691,8 @@ def _call_dmidecode(key, dmidecode_path): try: cmd = [dmidecode_path, "--string", key] (result, _err) = subp(cmd) - LOG.debug("dmidecode returned '%s' for '%s'", result, key) result = result.strip() + LOG.debug("dmidecode returned '%s' for '%s'", result, key) if result.replace(".", "") == "": return "" return result |