~jbauer/cloud-init/salt

« back to all changes in this revision

Viewing changes to cloudinit/CloudConfig/cc_mounts.py

  • Committer: Scott Moser
  • Date: 2012-01-17 20:59:21 UTC
  • mfrom: (505.1.4 trunk.cleanups)
  • Revision ID: smoser@ubuntu.com-20120117205921-pyf7ybik03gq3t3g
miscellaneous cleanups, and add tools/run-pylint

adding run-pylint makes it easy to run pylint with given configuration
against the code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import cloudinit.util as util
19
19
import os
20
20
import re
21
 
import string
 
21
from string import whitespace  # pylint: disable=W0402
22
22
 
23
23
 
24
24
def is_mdname(name):
139
139
 
140
140
    fstab_lines = []
141
141
    fstab = open("/etc/fstab", "r+")
142
 
    ws = re.compile("[%s]+" % string.whitespace)
 
142
    ws = re.compile("[%s]+" % whitespace)
143
143
    for line in fstab.read().splitlines():
144
144
        try:
145
145
            toks = ws.split(line)