~allenap/maas/xxx-a-thon

« back to all changes in this revision

Viewing changes to src/maasserver/preseed_storage.py

  • Committer: LaMont Jones
  • Date: 2016-03-07 23:20:52 UTC
  • mfrom: (4657.1.84 maas)
  • mto: (4657.1.93 maas)
  • mto: This revision was merged to the branch mainline in revision 4660.
  • Revision ID: lamont@canonical.com-20160307232052-rgfxbq7dujj6s093
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
            filesystem = block_device.get_effective_filesystem()
144
144
            if self._requires_format_operation(filesystem):
145
145
                self.operations["format"].append(filesystem)
146
 
                if filesystem.mount_point is not None:
 
146
                if filesystem.is_mounted:
147
147
                    self.operations["mount"].append(filesystem)
148
148
            else:
149
149
                partition_table = block_device.get_partitiontable()
155
155
                                partition_filesystem):
156
156
                            self.operations["format"].append(
157
157
                                partition_filesystem)
158
 
                            if partition_filesystem.mount_point is not None:
 
158
                            if partition_filesystem.is_mounted:
159
159
                                self.operations["mount"].append(
160
160
                                    partition_filesystem)
161
161