summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_mounts.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-10-04 18:29:12 -0400
committerScott Moser <smoser@ubuntu.com>2013-10-04 18:29:12 -0400
commitfb7b982da08619fad2c582f921c05cf982621c0b (patch)
tree4f8f3ae270482e49248cbd1a80e84e859f31dd0c /cloudinit/config/cc_mounts.py
parentff820acaf999479f75a12414ac5fcb12d51f258b (diff)
downloadvyos-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.py7
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)