diff options
author | Jay Faulkner <jay@jvf.cc> | 2014-08-26 11:50:11 -0700 |
---|---|---|
committer | Jay Faulkner <jay@jvf.cc> | 2014-08-26 11:50:11 -0700 |
commit | b3216b56f3fea3259c290faa2dd496215b625904 (patch) | |
tree | b88edfcb8819f27a5189891236f2edeb3b859350 /cloudinit/util.py | |
parent | 190cacc430900d9d2dd4dd45c59d01e30e469720 (diff) | |
download | vyos-cloud-init-b3216b56f3fea3259c290faa2dd496215b625904.tar.gz vyos-cloud-init-b3216b56f3fea3259c290faa2dd496215b625904.zip |
fix(pep8): Fix various pep8 violations and version-lock pep8
Fixed all complaints from running "make pep8". Also version locked
pep8 in test-requirements.txt to ensure that pep8 requirements don't
change without an explicit commit.
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index bc681f4a..0821901a 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -423,7 +423,7 @@ def get_cfg_option_list(yobj, key, default=None): @return: The configuration option as a list of strings or default if key is not found. """ - if not key in yobj: + if key not in yobj: return default if yobj[key] is None: return [] @@ -1148,7 +1148,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 not cfg or not 'output' in cfg: + if cfg or 'output' not in cfg: return ret outcfg = cfg['output'] @@ -1745,7 +1745,7 @@ def parse_mount_info(path, mountinfo_lines, log=LOG): # Ignore mount points higher than an already seen mount # point. if (match_mount_point_elements is not None and - len(match_mount_point_elements) > len(mount_point_elements)): + len(match_mount_point_elements) > len(mount_point_elements)): continue # Find the '-' which terminates a list of optional columns to |