~jbauer/cloud-init/salt

« back to all changes in this revision

Viewing changes to cloudinit/UserDataHandler.py

  • Committer: Scott Moser
  • Date: 2012-01-30 14:24:41 UTC
  • Revision ID: smoser@ubuntu.com-20120130142441-31gks8iqdthqzvb3
support empty lines in '#include' files (LP: #923043)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
            line = line[len("#include"):].lstrip()
72
72
        if line.startswith("#"):
73
73
            continue
 
74
        if line.strip() == "":
 
75
            continue
74
76
 
75
77
        # urls cannot not have leading or trailing white space
76
78
        msum = hashlib.md5()  # pylint: disable=E1101