~pwlars/charms/xenial/snappy-device-agent/xenial-snappy-device-agent-charm

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/fstab.py

  • Committer: Paul Larson
  • Date: 2016-05-16 20:27:32 UTC
  • Revision ID: paul.larson@canonical.com-20160516202732-9r4nkyl2f91w9xo3
Add support for xenial

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        for line in self.readlines():
78
78
            line = line.decode('us-ascii')
79
79
            try:
80
 
                if line.strip() and not line.startswith("#"):
 
80
                if line.strip() and not line.strip().startswith("#"):
81
81
                    yield self._hydrate_entry(line)
82
82
            except ValueError:
83
83
                pass
104
104
 
105
105
        found = False
106
106
        for index, line in enumerate(lines):
107
 
            if not line.startswith("#"):
 
107
            if line.strip() and not line.strip().startswith("#"):
108
108
                if self._hydrate_entry(line) == entry:
109
109
                    found = True
110
110
                    break