~kos.tsakalozos/charms/trusty/hdp-storm/trunk

« back to all changes in this revision

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

  • Committer: amir sanjar
  • Date: 2014-09-19 03:22:08 UTC
  • Revision ID: amir.sanjar@canonical.com-20140919032208-5zlexs7imnadgpll
merged chuck's changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        file.__init__(self, self._path, 'r+')
49
49
 
50
50
    def _hydrate_entry(self, line):
 
51
        # NOTE: use split with no arguments to split on any
 
52
        #       whitespace including tabs
51
53
        return Fstab.Entry(*filter(
52
54
            lambda x: x not in ('', None),
53
 
            line.strip("\n").split(" ")))
 
55
            line.strip("\n").split()))
54
56
 
55
57
    @property
56
58
    def entries(self):