summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-10-29 15:39:04 -0400
committerScott Moser <smoser@ubuntu.com>2014-10-29 15:39:04 -0400
commitd3efeef731470b1f840ab57c7fabc38954799a15 (patch)
tree9239d01eb555296fcdcd502db386d049f7f9d032 /cloudinit
parentdd1853b5b64c43995e33c129bc71def9f4bad0ce (diff)
downloadvyos-cloud-init-d3efeef731470b1f840ab57c7fabc38954799a15.tar.gz
vyos-cloud-init-d3efeef731470b1f840ab57c7fabc38954799a15.zip
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. LP: #1387340
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/util.py2
1 files changed, 1 insertions, 1 deletions
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']