diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-10-04 18:29:12 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-10-04 18:29:12 -0400 |
commit | fb7b982da08619fad2c582f921c05cf982621c0b (patch) | |
tree | 4f8f3ae270482e49248cbd1a80e84e859f31dd0c /cloudinit/config/cc_mounts.py | |
parent | ff820acaf999479f75a12414ac5fcb12d51f258b (diff) | |
download | vyos-cloud-init-fb7b982da08619fad2c582f921c05cf982621c0b.tar.gz vyos-cloud-init-fb7b982da08619fad2c582f921c05cf982621c0b.zip |
pep8 and pylint fixes
Diffstat (limited to 'cloudinit/config/cc_mounts.py')
-rw-r--r-- | cloudinit/config/cc_mounts.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cloudinit/config/cc_mounts.py b/cloudinit/config/cc_mounts.py index ff7bf506..84ec928f 100644 --- a/cloudinit/config/cc_mounts.py +++ b/cloudinit/config/cc_mounts.py @@ -20,6 +20,7 @@ from string import whitespace # pylint: disable=W0402 +import logging import os.path import re @@ -32,6 +33,8 @@ SHORTNAME = re.compile(SHORTNAME_FILTER) WS = re.compile("[%s]+" % (whitespace)) FSTAB_PATH = "/etc/fstab" +LOG = logging.getLogger(__name__) + def is_mdname(name): # return true if this is a metadata service name @@ -146,7 +149,7 @@ def handle(_name, cfg, cloud, log, _args): if cfgmnt_has: log.debug(("Not including %s, already" - " previously included"), startname) + " previously included"), start) continue cfgmnt.append(defmnt) @@ -230,7 +233,7 @@ def devnode_for_dev_part(device, partition): return None sys_long_path = sys_path + "/" + short_name - + if partition is not None: partition = str(partition) |