From a33f97f74439e13d80898350109ed6b41617b34d Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 29 Oct 2014 15:39:04 -0400 Subject: [PATCH] fix bad logic resulting in failure to honor 'output' config. This busted logic causes 'output' to not be paid any attention to, and thus output is not written to /var/log/cloud-init-output.log. --- cloudinit/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudinit/util.py b/cloudinit/util.py index f236d0bf..4bb73c11 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -1146,7 +1146,7 @@ def chownbyname(fname, user=None, group=None): # this returns the specific 'mode' entry, cleanly formatted, with value def get_output_cfg(cfg, mode): ret = [None, None] - if cfg or 'output' not in cfg: + if not cfg or 'output' not in cfg: return ret outcfg = cfg['output']