'Turn tmpfs into a hash of Tmpfs objects'

def _parse_tmpfs(self):

    result = dict()
    if (self.tmpfs is None):
        return result
    for tmpfs_spec in self.tmpfs:
        split_spec = tmpfs_spec.split(':', 1)
        if (len(split_spec) > 1):
            result[split_spec[0]] = split_spec[1]
        else:
            result[split_spec[0]] = ''
    return result
