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.
This commit is contained in:
Scott Moser 2014-10-29 15:39:04 -04:00
parent 99948f69fc
commit a33f97f744

View File

@ -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']