From 10885c57a7e6539f12966d1fcc89dcf528c926ae Mon Sep 17 00:00:00 2001 From: Igor Galić Date: Wed, 27 Nov 2019 22:32:19 +0100 Subject: dmidecode: log result *after* stripping \n This makes for a slightly prettier and less confusing log. --- cloudinit/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit') 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 -- cgit v1.2.3